摘要: 面向对象练习 #练习一 class Base: x = 1 obj = Base() print(obj.x) obj.y = 123 print(obj.y) obj.x = 123 print(obj.x) print(Base.x) ''' 输出结果 1 123 123 1 ''' #练习二 阅读全文
posted @ 2020-11-15 16:14 小杨的冥想课 阅读(47) 评论(0) 推荐(0) 编辑