摘要: dict = {"a": 1, "b": 2, "c": 3} 方法一: 使用zip()函数:dict1 = dict( zip( dict1.values(), dict1.keys() ) ) 方法二: 列表推导式: 方法三: for循环遍历: 阅读全文
posted @ 2020-09-15 17:02 Rachel_0226 阅读(721) 评论(0) 推荐(0) 编辑