测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A57570. 有如下程序段:class 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()

执行代码后,下列说法不正确的是?

选项(单选)