'''
coding=utf-8
import chardet
msg='\u8bbe\u7f6e\u6d41\u91cf\u5f15\u64ce\u76d1\u63a7\u7f51\u5361\u5931\u8d25'
msg=chardet.detect(msg)
print msg.encode('utf-8').decode('unicode_escape')
'''
'''
import chardet
msg='\u8bbe\u7f6e\u6d41\u91cf\u5f15\u64ce\u76d1\u63a7\u7f51\u5361\u5931\u8d25'
print msg.encode('utf-8').decode('unicode_escape')
'''
本文标题:python 把\u开头的unicode转中文
本文链接:https://www.haomeiwen.com/subject/opuoiqtx.html
网友评论