数据结构

列表

相关函数

  • any 如果 iterable 的任一元素为真值则返回 True。 如果可迭代对象为空,返回 False。

字典

dict(one=1, two=2, three=3)
{'one': 1, 'two': 2, 'three': 3}
dict(zip(['one', 'two', 'three'], [1, 2, 3]))
dict([('two', 2), ('one', 1), ('three', 3)])