以列表返回一个字典所有的键。
dict.keys()
def test(): arr={"a":"A","b":"B","c":"C"} print(arr.keys()) # 输出:["a","b","c"]