python 字典函数

>>> my_dict = {"name": "Alice", "age": 25, "gender": "female"}
>>> my_dict.values()
dict_values(['Alice', 25, 'female'])
>>> my_dict.keys()
dict_keys(['name', 'age', 'gender'])
>>> 

 

posted @ 2023-04-16 16:27  myrj  阅读(8)  评论(0编辑  收藏  举报