学习内容源自:廖雪峰的官网网站Python3重点: re.match re.split re.compile匹配适用规则:个人理解:re.match : 用于对字符串进行整体匹配,并将我们需要的特定部分选择出来。如:str_ip = "network192.168.0.1gateway192.168 ...
分类:
其他好文 时间:
2016-09-04 16:00:43
阅读次数:
158
Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a lette ...
分类:
其他好文 时间:
2016-09-03 07:30:16
阅读次数:
135
Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a lette ...
分类:
其他好文 时间:
2016-09-03 06:24:45
阅读次数:
163
【problem】 从别处copy过来的python代码经过自己改动后,运行出错 【解决过程】 vim file :set list # cat -A file 也可以 可以看到9-12行的indentaion是TAB,13行是4个空格。 Python语法不支持代码对齐中混用TAB和空格。 vim ...
分类:
其他好文 时间:
2016-09-02 14:39:53
阅读次数:
133
1.搜索所有结果,并按照balance倒序排序,返回条数设置为最大1000条 结果: 2.模糊匹配关键字keyword,搜索address中含有"Court"字符串的记录 结果: 3.完整匹配,需要用到“匹配短语”,match_phrase 查询语句为: 结果: 未完待续... ...
分类:
其他好文 时间:
2016-09-02 11:44:43
阅读次数:
158
email : 邮箱验证 match : 正则验证 url : 网址 safe : 安全 file : 文件 integer : 整数 boolean : 是否为一个布尔值 ...
分类:
其他好文 时间:
2016-09-01 18:18:00
阅读次数:
146
使用 1 <android.support.design.widget.TextInputLayout 2 android:id="@+id/passwordWrapper" 3 android:layout_width="match_parent" 4 android:layout_height= ...
分类:
其他好文 时间:
2016-09-01 13:07:03
阅读次数:
178
match、search、findall、group(s) 区别 一、match有两种情况 有分组 取匹配到的正则再次取其部分内容 无分组 二、groups、group、groupdict 三、search两种情况 有分组 无分组 四、findall # 1 匹配到之后,就抽离,继续从下一个字符开始 ...
分类:
编程语言 时间:
2016-09-01 11:00:52
阅读次数:
370
1、基本用法 match:str.match(reg) exec:reg.exec(str) 2、比较 匹配不到返回null reg不是全局搜索,两者的返回结果是一样的数组。 ['匹配到的结果','提取的内容1',...,'提取的内容n'] reg全局搜索: match返回数组 ['匹配到的结果1' ...
分类:
其他好文 时间:
2016-08-31 23:43:57
阅读次数:
197
转 : http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2014/0704/1629.html ScrollView滚动视图是指当拥有很多内容,屏幕显示不完时,需要通过滚动跳来显示的视图。Scrollview的一般用法如下 得到下面的界面: ...
分类:
其他好文 时间:
2016-08-31 15:31:45
阅读次数:
96