题目内容

下面代码的输出结果是()class A:def name(self):print("A"*5)class B(A):passclass C:def name(self):print("C"*5)class D(B,C):passa1 = D()a1.name()

查看答案
更多问题

classSchool:def __init__(self,name,age):self.name=nameself.age = agea1 = School("zhangsan",18)a2 = School("lisi",25)print(a1.name,a1.age)print(a2.name,a2.age)

下面代码的输出结果是()class Test:a = 1b = 2def __add__(self,other):# 重载加法运算return self.a+other.bclass SubTest(Test):a = 3b = 4def __init__(self,o):print(self+o)SubTest(Test())

Watch the video and answer the following questions:How many steps will you take to create a paperless office according to the video?

How many CO2 does one ton of paper produce?

答案查题题库