Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class T(object):
- def __init__(self,x = list()):
- self.x = x
- self.x.append(0)
- print self.x
- a = T()
- b = T()
- self.x = x[:]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement