标签:remove 字典 分享 res move 列表 ima app pre
l = [‘Lucy‘,‘Abb‘,‘Lily‘] l.append(‘Abb‘) l.pop() print(1) t = (‘Lucy‘,‘Abb‘,‘Lily‘) scores = [60,78,90] d = {‘Lucy‘:60,‘Abb‘:78,‘Lily‘:90} d[‘Abb‘] = 77 d[‘Rose‘] = 68 d.pop(‘Abb‘) print(d) sl = {‘Lucy‘,‘Abb‘,‘Lily‘} s2 = {‘Lucy‘,2,3} sl.add(12) s2.remove(3) print(sl,s2) dl = dict(zip(l,scores)) print(1) print(scores) print(dl)
标签:remove 字典 分享 res move 列表 ima app pre
原文地址:https://www.cnblogs.com/fkfkfk/p/9179409.html