题目内容 (请给出正确答案)
[单选题]

现有以下代码,执行以下命令报错的是() class Person: legs=2 __name="" def say(self): print("我是一个普通人") class Student(Person): nose=1 def say(self): print("我是一名学生")

A.Person().say();

B.Person.legs;

C.Student().say();

D.Student.__name;

提问人:网友lovewxh123 发布时间:2022-01-07
参考答案
查看官方参考答案
如搜索结果不匹配,请 联系老师 获取答案
网友答案
查看全部
  • · 有5位网友选择 C,占比62.5%
  • · 有2位网友选择 A,占比25%
  • · 有1位网友选择 D,占比12.5%
匿名网友 选择了C
[6.***.***.67] 1天前
匿名网友 选择了C
[228.***.***.152] 1天前
匿名网友 选择了A
[229.***.***.141] 1天前
匿名网友 选择了C
[6.***.***.67] 1天前
匿名网友 选择了C
[11.***.***.235] 1天前
匿名网友 选择了C
[27.***.***.52] 1天前
匿名网友 选择了C
[228.***.***.152] 1天前
匿名网友 选择了C
[183.***.***.87] 1天前
匿名网友 选择了D
[113.***.***.137] 1天前
匿名网友 选择了A
[96.***.***.216] 1天前
匿名网友 选择了A
[229.***.***.141] 1天前
匿名网友 选择了C
[27.***.***.52] 1天前
匿名网友 选择了C
[11.***.***.235] 1天前
匿名网友 选择了C
[27.***.***.52] 1天前
匿名网友 选择了C
[228.***.***.152] 1天前
匿名网友 选择了C
[183.***.***.87] 1天前
匿名网友 选择了D
[113.***.***.137] 1天前
匿名网友 选择了A
[96.***.***.216] 1天前
匿名网友 选择了A
[229.***.***.141] 1天前
匿名网友 选择了C
[6.***.***.67] 1天前
加载更多
提交我的答案
登录提交答案,可赢取奖励机会。
更多“现有以下代码,执行以下命令报错的是() class Pers…”相关的问题
第1题
What makes an information explosion so worrisome is that information is not a tool or a technology.
点击查看答案
第2题
在下列C#代码中,()是类Teacher的属性。

}

A. Name

B. name

C. age

D. SaySomething

点击查看答案
第3题
The eyeless gene in fruit flies, Small eye gene in mice, and Aniridia gene in humans have high homology in DNA sequence and their mutations result in defects in eye development. Which of the following statements is NOT consistent with this observation?

A、The same genes in distantly related organisms can shape similar developmental pathways.

B、The eyes of insects and mammals must have evolved independently during evolution.

C、A common pathway underlies eye development in all three organisms.

D、All three genes evolved from a common ancestral sequence.

点击查看答案
第4题
In a standard obit for a famous person, the lead is usually written this way: "(the name), (what made the person famous), died (when) (where). He / She was (age)".
点击查看答案
第5题
His mind would ______, and he would lose track of what he was doing.
点击查看答案
第6题
He was disliked because he did not like other people and people were ________ of his wealth.

A、notorious

B、conspicuous

C、jealous

D、inferior

点击查看答案
第7题
可以使用()输入字符型数据。

A. putchar(C.

B. getchar(C.

C. getchar()

D. scanf("%c",&C.

点击查看答案
第8题
关于类的继承说法正确的是()(多选)

A、创建子类对象会自动调用父类的构造方法;

B、子类可以通过子类名.父类方法的方式调用父类方法;

C、子类可以通过super().父类方法的方式调用父类方法;

D、调用子类方法时,Python会首先在子类中查找是否定义了该方法,若子类中未定义,则在父类中查找调用。

点击查看答案
账号:
你好,尊敬的用户
复制账号
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
欢迎分享答案

为鼓励登录用户提交答案,简答题每个月将会抽取一批参与作答的用户给予奖励,具体奖励活动请关注官方微信公众号:简答题

简答题官方微信公众号

警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
简答题
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反简答题购买须知被冻结。您可在“简答题”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
简答题
点击打开微信