要一直走下去

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

 

class Bar:
name = "abc"



class Foo(Bar):
@classmethod
def m1(cls):
print(cls.name) # abc





posted on 2021-05-28 19:10  要一直走下去  阅读(124)  评论(0编辑  收藏  举报