You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
290B

  1. # aaa={"1":"1","2":"2","3":"3","4": {"1": "4"}}
  2. # for i,v in aaa.items():
  3. # if i =="4":
  4. # v["1"] = "5"
  5. #
  6. # print(aaa)
  7. class base(object):
  8. __slots__=('x')
  9. var=8
  10. def __init__(self):
  11. pass
  12. def aa(self):
  13. print("aa")
  14. b=base()
  15. b.x=88
  16. print(b.aa())