摘要: 阅读目录1. 使用base642. 使用pycrypto模块回到顶部1. 使用base64s1 = base64.encodestring('hello world')s2 = base64.decodestring(s1)print s1, s2结果12aGVsbG8gd29ybGQ=hello ... 阅读全文
posted @ 2015-05-23 01:18 robotor 阅读(280) 评论(0) 推荐(0) 编辑
摘要: python strip()函数函数原型声明:s为字符串,rm为要删除的字符序列s.strip(rm) 删除s字符串中开头、结尾处,位于rm删除序列的字符s.lstrip(rm) 删除s字符串中开头处,位于rm删除序列的字符s.rstrip(rm) 删除s字符串中结尾处,位于rm删除序列的字符注意:... 阅读全文
posted @ 2015-05-23 01:17 robotor 阅读(309) 评论(0) 推荐(0) 编辑