苏小测

导航

 

row = [u'课程', u'语文', u'数学', u'英语']
print row
print str(row).decode('unicode-escape')
import json
s=json.dumps(row,ensure_ascii=False)
print s

output:

[u'\u8bfe\u7a0b', u'\u8bed\u6587', u'\u6570\u5b66', u'\u82f1\u8bed']
[u'课程', u'语文', u'数学', u'英语']
["课程", "语文", "数学", "英语"]

 

posted on 2021-05-16 22:20  苏小测  阅读(157)  评论(0编辑  收藏  举报