property装饰器
摘要:
1.property装饰器 property装饰器就是把方法伪装成属性给对象调用 eg class Student(): __school = 'SH' # _Student__school => _类名__属性名 def __init__(self, name, age): self.__name 阅读全文
posted @ 2021-12-03 20:42 Atopos_q 阅读(6) 评论(0) 推荐(0) 编辑