字符编码
摘要:
字符串编码 查看默认编码 通过以下代码可以查看python默认的编码是什么: import sys sys.getdefaultencoding() 输出结果为:utf-8 查看字符编码 python中可以通过ord()和chr()实现字符和编码之间的转换. ord('p')# out:112.字母 阅读全文
posted @ 2020-03-10 15:51 VinceZhang 阅读(102) 评论(0) 推荐(0)
posted @ 2020-03-10 15:51 VinceZhang 阅读(102) 评论(0) 推荐(0)
posted @ 2020-03-10 15:32 VinceZhang 阅读(168) 评论(0) 推荐(0)
posted @ 2020-03-10 15:13 VinceZhang 阅读(97) 评论(0) 推荐(0)