执行给定的Python类Student代码后,下列说法不正确的是?
有如下程序段:
class Student:
count = 0
def __init__(self, name):
self.name = name
Student.count += 1
def study(self):
print(f'{self.name}在学习')
student1 = Student("小明")
student2 = Student("小红")
student2.study()
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析