l = ['Michael','Bob','Tracy']
l.append('Bob')
l.pop()
print(1)
t = ('Michael','Bob','Tracy')
scores = [85,65,55]
d = {'Michael':85,'Bob':65,'Tracy':55}
d['Bob'] = 82
d['Rose'] = 88
d.pop('Bob')
print(d)
sl = {'Michael','Bob','Tracy'}
s2 = {'Michael',2,3}
sl.add(12)
s2.remove(3)
print(sl,s2)
dl = dict(zip(l,scores))
print(1)
print(scores)
print(dl)
转载于:https://www.cnblogs.com/Hensmann/p/9147536.html