题库 Python题库 题目列表 下列Python代码的执行结果是?( )mylist=['Fai...
单选题

下列Python代码的执行结果是?( )

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']

题目信息
2023年 选择题 3月
0%
正确率
0
评论
79
点击