自考题库
首页
所有科目
自考历年真题
考试分类
关于本站
游客
账号设置
退出登录
注册
登录
搜索
以下代码的运行结果为( )。
class Student:
def __init__(self, n="AAA"):
self.name = n
@classmethod
def show(cls):
s = cls()
print(s.name)
s = Student("BBB")
s.show()
A.AAA
B.BBB
C.None
D.错误
出自:
国家开放大学Python程序设计
显示答案
提示:
同一【IP】的非会员用户每天可免费获取10次答案
收藏本站【zk.995w.com】,下次访问不迷路
本站试题总数:【10245188】个 (题库试题定时更新)