• 2022-10-26
    Python中类的定义正确的是
    A: class Phone: name = "" call(self, name) print(name, "打电话")
    B: class Phone: name = "" call(self, name) print(name, "打电话")
    C: class Phone: name = "" def call(self, name): print(name, "打电话")
    D: class Phone name = "" def call(self, name): print(name, "打电话")