发布时间:2019-09-26 07:31:15编辑:auto阅读(2384)
直接str.decode() 找不到decode() 方法,所以要用以下方法
测试程序:
test = '\u5220\u9664'
test.encode('utf-8').decode('unicode_escape')
print(test)
打印结果:
删除
上一篇: python3 time模块与datet
下一篇: python3 爬虫之爬取糗事百科
51690
51344
41784
38555
33029
30051
28716
23704
23627
21992
2191°
2884°
2400°
2348°
2905°
2355°
3145°
5166°
4997°
3570°