发布时间:2019-09-26 07:31:15编辑:auto阅读(2929)
直接str.decode() 找不到decode() 方法,所以要用以下方法
测试程序:
test = '\u5220\u9664'
test.encode('utf-8').decode('unicode_escape')
print(test)
打印结果:
删除
上一篇: python3 time模块与datet
下一篇: python3 爬虫之爬取糗事百科
54981
41780
36363
31782
26686
26375
24900
20507
16451
15866
3006°
2731°
2822°
2976°
2911°
3176°
3063°
2905°
2901°
2884°