Answers for "copy python'"

4

python clone object

import copy

new_ob = copy.deepcopy(old_ob)
Posted by: Guest on December-29-2020
0

python copy list

a=[1,2,3,4]
b=a[:] 
''' now b has all elements of  a'''
Posted by: Guest on September-29-2020

Python Answers by Framework

Browse Popular Code Answers by Language