第28835题 单选题
已知下述Python类定义,下列选项中可以正确调用实例方法say_hello的是?
class Student:
    def say_hello(self):
        return '你好,我是学生'
A

Student.say_hello()

B

say_hello(Student())

C

stu = Student(); stu.say_hello()

D

Student.say_hello("test")

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