python中items()用法

items() 是 Python 中字典 (dictionary) 内置函数,用于返回字典中所有键值对 (key-value) 的元组列表。

使用方法:

dict.items()