Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import copy
- slovar={'a' : 0, 'b' : 1, 'c': [0,1]}
- massiv=[]
- for x in range(10):
- massiv.append(copy.deepcopy(slovar))
- massiv[0]['a']=2
- massiv[1]['c'][0]=33
- print(str(massiv[0]))
- print(str(massiv[1]))
Add Comment
Please, Sign In to add comment