K12教育赛事综合服务平台
聚乐之家官方网站
下载聚乐之家官方App
专注青少年竞赛题库网站
mylist=['Failure','is','the','mother','of','success'] for x in mylist[:]: if len(x)<=3: mylist.append(x) print(mylist)
['Failure','is','the','mother','of','success']
['Failure','is','the','mother','of','success','of','is']
['Failure', 'is', 'the', 'mother', 'of', 'success', 'is', 'of']
['Failure', 'is', 'the', 'mother', 'of', 'success', 'is', 'the', 'of']