有如下程序段:
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()
执行代码后,下列说法不正确的是?
程序创建了2个实例
Student.count的值为0
study为该类的方法
输出的结果为“小红在学习”