python json dumps 输出中文 import json d = {'greet': u'你好'} print d print json.dumps(d, ensure_ascii=False)