📜  字典获取所有键 - Python 代码示例

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

代码示例1
hh = {"a":3, "b":4, "c":5}

print(hh.keys())
# dict_keys(['a', 'b', 'c'])

print(list(hh.keys()))
# ['a', 'b', 'c']