2023年12 月电子学会Python等级考试试卷(六级)答案解析

青少年软件编程(Python)等级考试试卷(六级)

分数:100  题数:38

一、单选题(共25题,共50分)

1.

运行以下程序,输出的结果是?( )
class A():
    def __init__(self,x):
        self.x=x+1
    def b(self):
       return self.x*self.x
t=A(3)
print(t.b())

猜你喜欢

转载自blog.csdn.net/IT_Scratch/article/details/135466094