标签:方法 zip class 字典 one span print code style
a = dict(one=1, two=2, three=3) b = {‘one‘:1, ‘two‘:2, ‘three‘:3} c = dict(zip([‘one‘,‘two‘,‘three‘],[1,2,3])) d = dict([(‘one‘,1),(‘two‘,2),(‘three‘,3)]) e = dict({‘one‘:1, ‘two‘:2, ‘three‘:3}) print(a==b==c==d==e)
输出:
True
标签:方法 zip class 字典 one span print code style
原文地址:https://www.cnblogs.com/StackNeverOverFlow/p/9873764.html