(一)概述:
(二)RadioButton的基本用法与事件处理:
效果图:
实现代码:
xml文件
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_pa...
分类:
其他好文 时间:
2016-06-21 12:52:38
阅读次数:
299
题目链接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代码:
<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
六、FOREIGN KEY 外键约束 外键可以是单个字段,也可以是多个字段。所谓的外键约束就是引用字段必须在被引用字段中存在,除非引用字段部分为NULL或全部为NULL(由MATCH TYPE决定),否则INSERT或UPDATE时将返回失败,且被引用字段必须有唯一约束或是主键。 外键约束语法相对较 ...
分类:
数据库 时间:
2016-06-19 19:50:52
阅读次数:
445
需求:统计一篇完全由英文构成的文章中的单词的个数分析:需要判断什么是单词,并统计判断为单词的元素的个数需要:Python正则表达式简单例子:importre
pattern=re.compile(r‘\w+‘)
pattern.match(‘hello,world‘)
words=pattern.findall(‘hellohelloworld‘)
len(words)
分类:
编程语言 时间:
2016-06-19 10:16:26
阅读次数:
302
正则表达式 元字符 (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
正则概念 就其本质而言,正则表达式(或re)是一种小型的、高度专业化的编程语言,(在Python中)它内嵌在Python中,并通过re模块实现。正则表达式模式被编译成一系列的字节码,然后由用C编写的匹配引擎执行 初入正则,re.findall()与元字符 正则之反斜杠使用 re.match() re ...
分类:
编程语言 时间:
2016-06-18 06:41:07
阅读次数:
211
模块 os模块 sys模块 hashlib模块 时间模块 time & datetime 关系图 re模块 1 python 支持的正则表达式和语法 2 match 方法 match对象是一次匹配的结果,包含了很多关于此次匹配的信息,可以使用match提供的可读属性或方法来获取这些信息。 3 sea ...
分类:
编程语言 时间:
2016-06-18 01:18:32
阅读次数:
216
之前做自定义对话框需要宽度铺满全屏时,基本是这样操作的.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
排名完全是根据 GitHub 搜索 Java 语言选择 (Best Match) 得到的结果, 然后过滤了跟 Android 不相关的项目, 所以排名并不具备任何官方效力, 仅供参考学习, 方便初学者快速了解当前一些流行的 Android 开源库。 项目名称 项目简介 1. react-native ...
分类:
移动开发 时间:
2016-06-17 17:13:25
阅读次数:
578