<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" a ...
分类:
其他好文 时间:
2016-03-26 14:07:05
阅读次数:
332
importredatepat=re.compile(r‘(\d+)/(\d+)/(\d+)‘)m=datepat.match(‘11/27/2012‘)print(m)print(m.group(0))print(m.group(1))print(m.group(2))print(m.group(3))print(m.groups())month,day,year=m.groups()text=‘Todayis11/27/2012.PyConstarts3/13/2013.‘datepat.findall(..
分类:
其他好文 时间:
2016-03-26 08:32:03
阅读次数:
155
1.检测安卓,苹果和windows phone的手机 var ua = navigator.userAgent;var url;if(ua.match(/Windows\sPhone/i) !=null){ console.log('this is Windowsphone ');}else if( ...
分类:
Web程序 时间:
2016-03-24 18:13:56
阅读次数:
207
#用户指定需要的盘符,格式如“c:\”
$zonename=Read-Host("pleaseinputneedcheckdiskzone,Forexample[C:\]")
CD$zonename
#A打头文件夹筛选扫描
Get-ChildItem|where{$_.Name-match"^a"}|selectfullname|Out-Filea.txt
$file=Get-Content"a.txt"
foreach($ain$file)
{
Write-H..
分类:
系统相关 时间:
2016-03-24 16:33:03
阅读次数:
168
TextView设置文字大小及颜色: 1.1)通过xml配置 <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:textColor="#FF0000" android: ...
分类:
其他好文 时间:
2016-03-24 16:14:15
阅读次数:
149
function isWeiXin(){ var ua = window.navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i) == 'micromessenger'){ return true; }else{ retur
分类:
微信 时间:
2016-03-22 11:57:19
阅读次数:
291
function testExecResultType() { var txt = "mom and dad and baby"; var pattern = /mom (and day (and baby)?)?/ig; var match = pattern.exec(txt); documen...
分类:
编程语言 时间:
2016-03-21 13:50:25
阅读次数:
231
Kennethsnow and Hlwt both love football.
One day, Kennethsnow wants to review the match in 20032003 between AC Milan and Juventus for the Championship Cup. But before the
penalty shootout. he fell asleep.
The next day, he asked Hlwt for the result. Hlwt s...
分类:
其他好文 时间:
2016-03-20 14:44:43
阅读次数:
207
三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。 1)fill_parent 设置一个构件的布局为fill_parent将强制性地使构件扩展,以填充布局单元内尽可能多的空间。这跟Windows控件的dockstyle属性大体一致。设置一个顶部布
分类:
移动开发 时间:
2016-03-18 19:45:14
阅读次数:
151
function displayHtmlWithImageStream(bodyHtml) { var imgReg = /<img.*?(?:>|\/>)/gi; var arr = bodyHtml.match(imgReg); if (arr != null) { for (var i = 0
分类:
Web程序 时间:
2016-03-18 13:16:57
阅读次数:
209