摘要: 一、内容回顾 1、两个内置函数(装饰器)及类中的魔术方法 @classmethod 修改绑定方法为类方法,调用方式可以是实例名.方法名()或者类名.方法名() class Person: County = "中国" def __init__(self,name): self.name = name 阅读全文
posted @ 2021-01-14 20:58 小鱼鱼与黄黄 阅读(58) 评论(0) 推荐(0) 编辑