lst = [1, 2, 3, 4, 5]
2、初始化连续数字。...>>> lst = [n for n in range(5, 10)]
>>> print(lst)
[5, 6, 7, 8, 9]
3、初始化n个相同值。...> lst = ['z']*5
>>> print(lst)
['z', 'z', 'z', 'z', 'z']
>>> lst = [0]*3
>>> print(lst)
[0, 0, 0]
4、Python...collections.OrderedDict)
from collections import OrderedDict
>>> OrderedDict([('b', 2), ('a', 1)])
5.1、Python