fork(1) download
  1. class C(object):
  2. def __init__(self, v):
  3. self.value = v
  4. def show(self):
  5. print(self.value)
  6.  
  7. c1 = C(10)
  8. print(c1.value)
  9. c1.value = 20
  10. print(c1.value)
  11. c1.show()
Success #stdin #stdout 0.02s 8688KB
stdin
Standard input is empty
stdout
10
20
20