摘要: 编码的进阶 1. 不同的密码本之间不能互相识别 2. 数据在内存中全部都是以Unicode编码的,但是当你的数据用于网络传输或者存储到硬盘中,必须是以非Unicode编码(utf 8,gbk等等) 英文: str:'hello' 内存中的编码方式:Unicode 表现形式:'hello' bytes 阅读全文
posted @ 2019-07-30 15:53 病毒正在入侵...中 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 基础数据类型补充 1. 字符串 str 字符串的方法及操作 str s1 = 'aLExNb' s2 = s1.capitalize() capitalize首字母大写其它熊谢 print(s2) Alexnb s3 = s1.swapcase() swapcase大小写反转 print(s3) A 阅读全文
posted @ 2019-07-30 13:18 病毒正在入侵...中 阅读(59) 评论(0) 推荐(0) 编辑