import redef match_sxz(noun): return re.search('[sxz]$',noun)def apply_sxz(noun): return re.sub('$','es',noun)def match_h(noun): return re.se...
分类:
编程语言 时间:
2015-03-17 10:22:38
阅读次数:
142
一个int占多少个字节?这个问题我们往往得到的答案是4.可是int究竟占多少个字节,却跟你的机器环境有关.As you can see, the typical data type sizes match the ILP32LL model, which is what most compilers...
分类:
其他好文 时间:
2015-03-16 20:52:30
阅读次数:
112
1、简单语法的自动补全
preferences->setting user
输入如下代码,保存。
{
"auto_complete":true,
"auto_match_enabled":true
}
退出sublime 重进。
好像是不起作用,需要等一段时间就ok了。
2、html常用补全方式
如:输入
div.wrapper>div.header+div.main+...
分类:
其他好文 时间:
2015-03-15 13:54:23
阅读次数:
135
先看欢迎界面的布局
activity_welcome.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
a...
分类:
其他好文 时间:
2015-03-14 23:14:50
阅读次数:
200
Description Do not sincere non-interference。 Like that show, now starvae also take part in a show, but it take place between city A and B. Starv...
分类:
其他好文 时间:
2015-03-14 23:08:52
阅读次数:
188
基于数组的ListViewlistview1.xml<?xmlversion="1.0"encoding="utf-8"?>
<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"android:layout_height="match_parent">
<ListView
android:layout_wi..
分类:
移动开发 时间:
2015-03-14 20:16:16
阅读次数:
153
基于ArrayAdapter创建ListView程序清单listview2.xml<?xmlversion="1.0"encoding="utf-8"?>
<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"android:layout_height="match_parent">
<ListView
..
分类:
移动开发 时间:
2015-03-14 20:15:58
阅读次数:
230
使用SimpleAdapter创建ListView程序清单1<?xmlversion="1.0"encoding="utf-8"?>
<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"android:layout_height="match_parent">
<ListView
android:lay..
分类:
移动开发 时间:
2015-03-14 20:11:14
阅读次数:
269
PHP 正则有两个比较重要的方法 preg_match() 和 preg_replace(); 给一个简单的例子。要对这个进行匹配,用到的模式如下:...
分类:
Web程序 时间:
2015-03-14 20:05:21
阅读次数:
169
1.布局实现:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizont...
分类:
移动开发 时间:
2015-03-14 17:06:09
阅读次数:
1416