Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. class Test:
  2.     test_dict = {'test': 0}
  3.  
  4.  
  5. class Test_main:
  6.     def __init__(self):
  7.         self.test_ = Test()
  8.  
  9.  
  10. new1 = Test_main()
  11. new2 = Test_main()
  12.  
  13. new1.test_.test_dict['test'] = 228
  14.  
  15. print(str(new1.test_.test_dict))  # {'test': 228}
  16. print(str(new2.test_.test_dict))  # {'test': 228}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement