下列代码中,c.method1()和c.method2()的输出结果分别是?( )
class Parent():
def method1(self):
return "Parent's method1"
class Child(Parent):
def method1(self):
return "Child's method1"
def method2(self):
return super().method1()
c = Child()
print(c.method1())
print(c.method2())
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析