慕尼黑5688855
只需将字典元素分配给新字典中的适当元素即可。new_dict = { "date": old_dict["date"], "inputs": { "name": old_dict["name"], "id": old_dict["id"] } }