import json, pprint dic = {'name': 234, 'user_name': 'yan xia ting yu ', 'list': ['ds', 'a', 2], '你好这是键': '檐下听雨'}print(dic)pprint.pprint(dic)print(json.dumps(dic))print(json.dumps(dic, indent=2)) # {'name': 234, 'user_name': 'yan xia ting yu ', 'list…