Python如何在外部通过类名调用对象方法 在Python中,可以使用类方法(@classmethod)或静态方法(@staticmethod)在外部通过类名调用对象方法。例如: class MyClass: name = "John" def __init__(self, age): self.age = age def display(self)