Python 打印list是显示unicode,转化成中文

来源:互联网 发布:ubuntu chmod 755 编辑:程序博客网 时间:2024/05/17 08:16

Python2.7下使用如下方法:

import jsonprint json.dumps(abc, encoding='utf-8', ensure_ascii=False)


原创粉丝点击