1.删除特例 lis = [11,22,33,44,55] for i in range(len(lis)): print(i) del lis[i] print(lis) #每删除链表中一个值链表就会前移一位 2.删除字典的值 dic = {'k1':'v1','k2':'v2','a3':'v3'} dic1 = {} l = [] for i in dic: if 'k' in i: l.append(i) for i in l: del dic[i] print(dic) #输出{'a3…