摘要: escape_string 序列 转中文输出 escape_string='\u559c\u6b22\u4e00\u4e2a\u4eba' print escape_string.decode('raw_unicode_escape') str 转 utf8编码 unicode: str_string.decode('utf8') unicode 转 utf8编码 str: unicode... 阅读全文
posted @ 2016-10-14 23:54 恰似少年 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 正则表达式{ 正则表达式的意思:我们程序员写一个正则表达式,在一段字符串中找到跟我们表达式表示的一样的内容{ 例如1: 表达式:ABC ,字符串1: ABCDEFG , 字符串2: ABDCEFG ,字符串3: ABDABCEFG ,字符串4: ABCABC 结论: 字符串1 匹配成立, 结果 ABC 字符串2 匹配失败, 结果 空 字符串3... 阅读全文
posted @ 2016-10-14 07:40 恰似少年 阅读(208) 评论(0) 推荐(0) 编辑
摘要: ------------- 一起学习 阅读全文
posted @ 2016-10-14 07:36 恰似少年 阅读(470) 评论(0) 推荐(0) 编辑