man grep
grep searches the named input FILEs (or standard input if no files are named, or if a single hyphen-minus (-) is given as file name) for lines containing a match to the given PATT...
分类:
其他好文 时间:
2014-09-25 12:05:58
阅读次数:
195
1、XML文件中添加ListView
(1)XML布局文件
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
...
分类:
移动开发 时间:
2014-09-25 00:27:37
阅读次数:
315
1. 通过正则表达式获取var data = "1libinqq,1libinqq,2libinqq,3libinqq,1libinqq,2libinqq,3libinqq,4libinqq";var reCat = "(.*)";var arrdata = data.match(reCat);al...
分类:
其他好文 时间:
2014-09-24 14:53:46
阅读次数:
142
match中也可用正则 返回的是数组var str="i love you, i love you";str.match(/love/);//只返回一个lovestr.match(/love/g);// /love/g后面的g是全局匹配,这时就返回两个love的数组同理str.replace(/lo...
分类:
Web程序 时间:
2014-09-24 09:36:46
阅读次数:
275
数字类型的相关模块:decimal:十进制浮点运算类array:高效数值数组(字符,整形,浮点型)match:常规数学运算operator:数字操作符的函数实现random:多种伪随机数生成器字符串类型相关的模块:re:正则表达式struct:字符串和二进制之间转换StringIO:字符串缓冲对象,...
分类:
编程语言 时间:
2014-09-23 22:14:55
阅读次数:
254
1, C#中与正则表达式相关类。 C#中与正则表达式相关类的几个常用类是Regex,Match,Group,Captrue,RegexOption首先我们看看这几个类的类图关系,如何你有正则表达式基础,从这些方法和属性中就大概能明白使用方法了。 Regex:与正则表达式相关的操作必须通过它来执行的,...
分类:
其他好文 时间:
2014-09-23 20:48:55
阅读次数:
253
实现对一个主题评论并显示评论列表,首先想到的是需要使用ListView控件,
下面是layout下的xml布局文件:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_heig...
分类:
微信 时间:
2014-09-23 18:39:55
阅读次数:
408
问题:在C#给C++传数组类型数据时报此错,相应英文信息为“Type could not be marshaled, because the length of an embed array doesn't not match the declared length in the layout”原因...
分类:
其他好文 时间:
2014-09-23 12:44:14
阅读次数:
643
错误提醒:The provisioning profile specified in your build settings (“haotian”) has an AppID of “com.basecom.vipose” which does not match your bundle identifier “com.baseus.iTemperature”. Xcode can resolv...
分类:
移动开发 时间:
2014-09-19 17:45:55
阅读次数:
214
最近在搞 andorid 的时候 会很纠结 match_parent和fill_parent 有什么
区别?
match_parent和fill_parent
都是填充 父控件,android2.2(API8)之前都是用 fill_parent!
API8 之后的新版本都是用 match_parent;
wrap_content 大家都知道 就是 ...
分类:
其他好文 时间:
2014-09-19 12:03:45
阅读次数:
168