界面效果
应用的权限
布局文件
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
andr...
分类:
移动开发 时间:
2014-06-03 00:45:02
阅读次数:
303
布局文件:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="...
分类:
移动开发 时间:
2014-06-01 04:04:04
阅读次数:
490
不断找增广路,直到没有增广路,每找到一条增广路匹配数就加1 //hungary const
int X=100,Y=100;int match[Y];// initial to -1bool vis[Y];int g[X][Y];bool
dfs(int x){ for(int y=1;y<=Y;y...
分类:
其他好文 时间:
2014-05-31 20:49:41
阅读次数:
247
function getServiceUrl() { var serverUrl =
Xrm.Page.context.getServerUrl(); if (serverUrl.match(/\/$/)) { serverUrl =
serverUrl.substring(0, serverUrl...
分类:
其他好文 时间:
2014-05-31 05:01:55
阅读次数:
214
//判断一个汉子等于两个字符function getByteLen(val) { var len =
0; for (var i = 0; i < val.length; i++) { var a = val.charAt(i); if
(a.match(/[...
分类:
Web程序 时间:
2014-05-26 20:47:25
阅读次数:
205
Scala中的match, 比起以往使用的switch-case有著更強大的功能, 1. 傳統方法
def toYesOrNo(choice: Int): String = choice match { case 1 => "yes" case 0
=> "no" case _ => "error"...
分类:
其他好文 时间:
2014-05-26 20:45:46
阅读次数:
285
LinearLayout linearLayoutMain = new
LinearLayout(this);//自定义一个布局文件 linearLayoutMain.setLayoutParams(new
LayoutParams( LayoutParams.MATCH_PARENT, ...
分类:
移动开发 时间:
2014-05-26 16:22:12
阅读次数:
257
Marriage Match II
Time Limit: 2000/1000 MS (Java/Others) Memory Limit:
32768/32768 K (Java/Others)
Problem Descript...
分类:
其他好文 时间:
2014-05-26 04:40:15
阅读次数:
228
Python能够成为流行的数据处理语言,部分原因是其简单易用的字符串和文本处理功能。大部分文本运算都直接做成了字符串对象的内置方法。对于更为复杂的模式匹配和文本操作,则可能需要用到正则表达式。pandas对此进行了加强,它使你能够对数组数据应用字符串表达式和正则表达式,而且能处理烦人的缺失数据。...
分类:
编程语言 时间:
2014-05-26 03:42:44
阅读次数:
443
import re
data = open('a.txt')
fh = open('b.txt', 'w')
"""Search the string begining with '【'"""
p = re.compile(r'\s*[\u3010]')
for each_d in data:
if re.match('\s*3\d{4}', each_d):
...
分类:
编程语言 时间:
2014-05-22 17:26:17
阅读次数:
293