t206.py 239 B

1234567891011121314151617
  1. class Stuff:
  2. def __init__(self):
  3. self.a = 0
  4. self.b = 'b'
  5. self.c = [1,2,3]
  6. self.d = 100000000000000
  7. s = Stuff()
  8. s.a += 10
  9. s.b += 'dog'
  10. s.c += [9,10]
  11. s.d += 10000
  12. print s.a
  13. print s.b
  14. print s.c
  15. print s.d