题库首页 › 青少年软件编程(Python) › 题目 4865

下列代码的执行结果是?() 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']

正确答案:D

试卷来源:202303 青少年软件编程等级考试Python二级真题

本卷相关题目

在线做题 同科目题库