#coding:utf-8
import json
a= "\u5185\u8863"
print(json.loads('"%s"' %a))
b = "内衣"
print(json.dumps(b))
#coding:utf-8
import json
a= "\u5185\u8863"
print(json.loads('"%s"' %a))
b = "内衣"
print(json.dumps(b))
本文标题:python处理unicode——\u5185\u8863
本文链接:https://www.haomeiwen.com/subject/azzejltx.html
网友评论