要一直走下去

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2021年5月28日

摘要: class Bar: name = "abc" class Foo(Bar): @classmethod def m1(cls): print(cls.name) # abc 阅读全文
posted @ 2021-05-28 19:10 要一直走下去 阅读(124) 评论(0) 推荐(0) 编辑