第13932题 单选
运行以下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())
A

10

B

12

C

程序报错

D

6

提交0次 正确率0.00%
答案解析