把列表中所有姓周的人的信息删掉(此题有坑, 请慎重): lst = ['周⽼⼆', '周星星', '麻花藤', '周扒⽪'] # 结果: lst = ['麻花藤']
l = []
for i in lst:
if '周' not in i:
l.append(i)
lst = l
print(lst)
l = []
for i in lst:
if '周' not in i:
l.append(i)
lst = l
print(lst)