第30051题 单选题
运行以下Python代码,最终的输出结果是?
class Student:
    count = 0
    def __init__(self, name):
        self.name = name
        self.count += 1

s1 = Student('张三')
s2 = Student('李四')
print(Student.count, s1.count)
A

0 和 1

B

2 和 2

C

1 和 1

D

2 和 1

程序运行统计
暂无判题统计
提交0次 正确率0.00%
答案解析