摘要: 一:概述 正则表达式(RE)为高级文本模式匹配,以及搜索-替代等功能提供了基础。正则表达式(RE)是一些由字符和特殊符号组成的字符串,它们能匹配多个字符串。Python通过标准库的re模块支持正则表达式。 在Python中,有两种主要方法完成模式匹配:搜索(searching)和匹配(matchin 阅读全文
posted @ 2015-07-15 23:26 gqtc 阅读(266) 评论(0) 推荐(0)
摘要: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo 阅读全文
posted @ 2015-07-15 16:48 gqtc 阅读(108) 评论(0) 推荐(0)