resp = urllib.request.urlopen(req)
content = resp.read()
if(content):
print(content.decode('UTF-8'))
打印出来的字符串像这样:
"word":" \u8679\u6865\u673a\u573"
怎么将字符串内的 \u8679 这些转换成中文??
python新手,谢谢!!
resp = urllib.request.urlopen(req)
content = resp.read()
if(content):
print(content.decode('UTF-8'))
打印出来的字符串像这样:
"word":" \u8679\u6865\u673a\u573"
怎么将字符串内的 \u8679 这些转换成中文??
python新手,谢谢!!
最后一个字符应该有问题