码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果)
UI控件之RadioButton(单选按钮)&Checkbox(复选按钮)
(一)概述: (二)RadioButton的基本用法与事件处理: 效果图: 实现代码: xml文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_pa...
分类:其他好文   时间:2016-06-21 12:52:38    阅读次数:299
290. Word Pattern [easy] (Python)
题目链接https://leetcode.com/problems/word-pattern/题目原文 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...
分类:编程语言   时间:2016-06-21 08:03:38    阅读次数:178
简析静态xml布局如何通过动态代码实现
先看一下xml代码: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@andr...
分类:其他好文   时间:2016-06-21 07:16:34    阅读次数:275
postgresql----数据库表约束----FOREIGN KEY
六、FOREIGN KEY 外键约束 外键可以是单个字段,也可以是多个字段。所谓的外键约束就是引用字段必须在被引用字段中存在,除非引用字段部分为NULL或全部为NULL(由MATCH TYPE决定),否则INSERT或UPDATE时将返回失败,且被引用字段必须有唯一约束或是主键。 外键约束语法相对较 ...
分类:数据库   时间:2016-06-19 19:50:52    阅读次数:445
python 统计单词个数---不去重
需求:统计一篇完全由英文构成的文章中的单词的个数分析:需要判断什么是单词,并统计判断为单词的元素的个数需要:Python正则表达式简单例子:importre pattern=re.compile(r‘\w+‘) pattern.match(‘hello,world‘) words=pattern.findall(‘hellohelloworld‘) len(words)
分类:编程语言   时间:2016-06-19 10:16:26    阅读次数:302
Python 6th Day
正则表达式 元字符 (metacharacters) [], 用来指定一个字符集(character class),字符集可以单个列出或者指定一个范围,For example, [abc] will match any of the characters a, b, or c; this is th ...
分类:编程语言   时间:2016-06-18 06:41:22    阅读次数:148
python re模块学习(一)
正则概念 就其本质而言,正则表达式(或re)是一种小型的、高度专业化的编程语言,(在Python中)它内嵌在Python中,并通过re模块实现。正则表达式模式被编译成一系列的字节码,然后由用C编写的匹配引擎执行 初入正则,re.findall()与元字符 正则之反斜杠使用 re.match() re ...
分类:编程语言   时间:2016-06-18 06:41:07    阅读次数:211
python 模块 反射
模块 os模块 sys模块 hashlib模块 时间模块 time & datetime 关系图 re模块 1 python 支持的正则表达式和语法 2 match 方法 match对象是一次匹配的结果,包含了很多关于此次匹配的信息,可以使用match提供的可读属性或方法来获取这些信息。 3 sea ...
分类:编程语言   时间:2016-06-18 01:18:32    阅读次数:216
关于Android对话框宽度无法铺满全屏的问题
之前做自定义对话框需要宽度铺满全屏时,基本是这样操作的.AlertDialogdialog=newAlertDialog.Builder(context).create(); dialog.show(); Windowwindow=dialog.getWindow(); WindowManager.LayoutParamslp=window.getAttributes(); lp.width=WindowManager.LayoutParams.MATCH_..
分类:移动开发   时间:2016-06-17 19:45:02    阅读次数:3266
2016年GitHub 排名前 100 的安卓、iOS项目简介(收藏)
排名完全是根据 GitHub 搜索 Java 语言选择 (Best Match) 得到的结果, 然后过滤了跟 Android 不相关的项目, 所以排名并不具备任何官方效力, 仅供参考学习, 方便初学者快速了解当前一些流行的 Android 开源库。 项目名称 项目简介 1. react-native ...
分类:移动开发   时间:2016-06-17 17:13:25    阅读次数:578
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!