-->
当前位置:首页 > 题库 > 正文内容

单选题:以下代码的输出结果为( )

Luz4年前 (2021-11-07)题库1118
以下代码的输出结果为( )

names = ['张三', '李四', '王五', '赵六', '田七']
print(names[5])



A.田七
B.赵六
C.name 'names[5]' is not defined
D.IndexError: list index out of range


答案:D

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。