AI题库 · Python编程二级题库
题目分享 #4681
下列代码的执行结果是?()
mylist=['Failure','is','the','mother','of','success']
for x in mylist[:]:
if len(x)<=3:
mylist.append(x)
print(mylist)
A
['Failure','is','the','mother','of','success']
B
['Failure','is','the','mother','of','success','of','is']
C
['Failure', 'is', 'the', 'mother', 'of', 'success', 'is', 'of']
D
['Failure', 'is', 'the', 'mother', 'of', 'success', 'is', 'the', 'of']
AI题库 · 编程考级与信奥赛真题库
查看答案 →
复制链接后可在微信、QQ、小红书等平台粘贴分享;答案与解析在题目页。