发布时间:2019-09-26 07:31:15编辑:auto阅读(2080)
直接str.decode() 找不到decode() 方法,所以要用以下方法
测试程序:
test = '\u5220\u9664'
test.encode('utf-8').decode('unicode_escape')
print(test)
打印结果:
删除
上一篇: python3 time模块与datet
下一篇: python3 爬虫之爬取糗事百科
48673
47691
38475
35688
30130
26856
25878
20737
20491
18889
189°
276°
309°
330°
321°
318°
370°
435°
564°
543°