摘要: # 合并字典dic_a = {"user": "aa", "pwd": "123"}dic_b = {"age": 12, "sex": "男"}# 1.update方法# dic_a.update(dic_b)# print(dic_a)# 2.字典解包# dic_new = {**dic_a, 阅读全文
posted @ 2023-03-29 12:53 dyjnicole 阅读(27) 评论(0) 推荐(0) 编辑