python json dumps 输出中文

import json

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

print d

print json.dumps(d, ensure_ascii=False)

posted @ 2017-02-16 12:23  2714  阅读(759)  评论(0编辑  收藏  举报