摘要: 一、self的作用 class Person: country = 'China' def __init__(self,name): self.name = name print('内存地址',id(self)) def say(self): print(self.name)xm = Person( 阅读全文
posted @ 2019-11-19 19:47 洛歆陌离 阅读(323) 评论(0) 推荐(0) 编辑