首页试题详情
难度: 使用次数:138更新时间:2026/03/13
1.
下列选项中,哪一个是创建类的一个正确方式?
A.class Student: ...
B.new Student()
C.Student()
D.define Student()
题型:选择题 知识点:第二章 程序设计语言基础
【答案】
A
【解析】
在Python中,定义类使用'class'关键字,格式为'class 类名: ...'。其他选项不符合Python语法。

查看答案和解析

支付 ¥0.1 即可查看此题答案和详细解析

低至 ¥0.1 起

类题推荐:

未分类