摘要: 今日总结 动态方法、静态方法 # 动态方法 # 绑定给对象的方法 class Student: def run(self): print(self) # 类调用绑定给对象的方法时有多少参数就需要传多少参数 print(Student.run(1)) # 1 None # 对象调用绑定给对象的方法时会 阅读全文
posted @ 2022-04-07 22:18 有梦想的阿九 阅读(29) 评论(0) 推荐(0)