class Bar: name = "abc"
class Foo(Bar): @classmethod def m1(cls): print(cls.name) # abc
Copyright @ 2024 要一直走下去 Powered by .NET 8.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster