题目链接: http://poj.org/problem?id=1422 Description Consider a town where all the streets are one-way and each street leads from one intersection to anot ...
分类:
其他好文 时间:
2017-08-15 10:02:28
阅读次数:
175
Python里面match()和search()的区别? '''match()从第一个字符开始找,如果第一个就不匹配,会直接返回None,不继续匹配.主要用于匹配开头''' #coding=utf-8 import re result = re.match("www","www.cn") resul ...
分类:
编程语言 时间:
2017-08-14 23:34:23
阅读次数:
245
1 //匈牙利算法模版题 2 #include 3 #include 4 #include 5 using namespace std; 6 const int maxn = 505; 7 vector v[maxn]; 8 int vis[maxn],match[maxn]; 9 bool dfs... ...
分类:
编程语言 时间:
2017-08-14 11:32:34
阅读次数:
124
1.头文件 import re 2.re.findall("stra","strb",匹配模式) 在strb中找stra,返回一个列表,列表中为所有的匹配内容 2re.search("stra","strb",匹配模式) 匹配一次,返回一个search对象 3re.match("strb","str ...
分类:
编程语言 时间:
2017-08-14 10:06:11
阅读次数:
214
在git commit 之后执行 git push 时看到如下消息: 经查询文档后得知,"matching" 参数是 Git 1.x 的默认行为,其意是如果你执行 git push 但没有指定分支,它将 push 所有你本地的分支到远程仓库中对应匹配的分支。而 Git 2.x 默认的是 "simpl ...
分类:
其他好文 时间:
2017-08-13 23:16:30
阅读次数:
156
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" an ...
分类:
移动开发 时间:
2017-08-13 20:49:45
阅读次数:
236
/***js微信浏览器判断****/function is_weixin() { var ua = window.navigator.userAgent.toLowerCase(); if (ua.match(/MicroMessenger/i) == 'micromessenger') { $(" ...
分类:
微信 时间:
2017-08-13 18:08:03
阅读次数:
260
You run a marriage media. You take some profiles for men and women, and your task is to arrange as much marriages as you can. But after reading their ...
分类:
其他好文 时间:
2017-08-13 14:14:29
阅读次数:
206
情景 热部署时,我们期望升级包中包括js代码与图片资源。bundle的热部署网上已经有两种方案了,一种是用反射,一种是利用RN自带函数。将bundle初始化时直接放到指定文件夹下,之后通过替换bundle文件实现代码热部署。我们希望图片也能够实现热部署,以下是一个比較简单的解决方式。 详细需求:cl ...
分类:
移动开发 时间:
2017-08-13 10:02:19
阅读次数:
201
正则匹配里面方法分为两种使用方法:方法1:importrestr=‘iamabadhero‘re.search(‘am’,str)re.match(‘am’,str)re.findall(‘am’,str)re.finditer(‘am’,str)方法2:importrestr=‘iamabadhero’pat=re.compile(r‘am’)#r的意思是原生字符串pat.match(str)方法区别在于,..
分类:
编程语言 时间:
2017-08-12 15:31:33
阅读次数:
216