python杂技

字典:

com = {'one':1,'two':2,'three':3}
print(com[0])

KeyError: 0 (原因是字典本是无序的,不能用sequence进行索引)

猜你喜欢

转载自blog.csdn.net/a15986714591/article/details/78362985