【转】Python 字典中的中文输出问题
import json dict = {'Title': '这是标题'} print json.dumps(dict, ensure_ascii=False, encoding='UTF-8') #结果: {"Title": "这是标题"}
【转自】:http://blog.csdn.net/zhangchaoy/article/details/19337841
import json dict = {'Title': '这是标题'} print json.dumps(dict, ensure_ascii=False, encoding='UTF-8') #结果: {"Title": "这是标题"}
【转自】:http://blog.csdn.net/zhangchaoy/article/details/19337841