运行以下Python类相关程序,输出结果是?
class A():
def __init__(self,x):
self.x = x
def add1(self):
return self.x + self.x
t1 = A(3)
t2 = A(t1.add1())
print(t2.add1())
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析