Python unicode转义字符\u的处理
python还有更为专业的方法来解决unicode转义字符问题,那就是unicode-escape编码。
s2 = "\u2121"
s = s2.decode("unicode-escape")
就可以了
python还有更为专业的方法来解决unicode转义字符问题,那就是unicode-escape编码。
s2 = "\u2121"
s = s2.decode("unicode-escape")
就可以了
作者:云中牧野【简介】 本篇作为python系列的第二篇,主要完成“Hello world”以及其它的前期准备工作,主要包括:python的安装、pycharm的安装、第一句hello、第三方库的安装。【准备的材料】 python3.8、pycharm【步
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M