📜  py3 dict 值 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:11.374000             🧑  作者: Mango

代码示例1
Yes it's the exact same thing in Python 2:

d.values()
In Python 3 (where dict.values returns a view of the dictionary’s values instead):

list(d.values())