python json dumps 输出中文

import json

d = {'greet': u'你好'}

print d

print json.dumps(d, ensure_ascii=False)

原文地址:https://www.cnblogs.com/wythend/p/6405112.html