码迷,mamicode.com
首页 >  
搜索关键字:shell time expr wait    ( 86807个结果)
不会写重试,自定义了一个重试
不会写重试,我用了这么个方法来 作为重试机制: def web(self): time.sleep(5) i = 0 a = self.br.current_url print a while i < 10: self.br.back() if self.br.current_url == a: i...
分类:其他好文   时间:2014-08-18 16:12:22    阅读次数:213
每天学一点shell——tr
tr(translate缩写)主要用于删除文件中的控制字符,或进行字符转换。 语法:tr [–c/d/s/t] [SET1] [SET2] SET1: 字符集1 SET2:字符集2 -c:complement,用SET2替换SET1中没有包含的字符 -d:delete,删除SET1中所有的字符,不转...
分类:其他好文   时间:2014-08-18 16:04:32    阅读次数:135
04bash基础
基本框架:a) 通配符 * ? [1-3] [123]b) 输入输出重定向 >> 2>c) 管道 |d) 后台作业 jobs bg fge) 历史记录 history !+历史命令号f) 命令补全 tab 按两下tab显示所有匹配项1、通配符*匹配所有(多个)字符 ?匹配单个字符2、输入输出重定向....
分类:其他好文   时间:2014-08-18 16:02:32    阅读次数:173
HDU 1527 取石子游戏
取石子游戏Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3512Accepted Submission(s): 1755Problem Descr...
分类:其他好文   时间:2014-08-18 15:46:02    阅读次数:163
Linux下QT中执行shell命令
当需要在QT中执行shell命令时可以利用以下方法: (1)首先包含头文件: #include <QProcess> (2)执行shell命令: QProcess::execute("ls"); ///////////////////// #include ?<QProcess> void Widget:on_pus...
分类:系统相关   时间:2014-08-18 14:39:12    阅读次数:226
UVA - 10780 Again Prime? No Time. (质因子分解)
Description Again Prime? No time. Input: standard input Output: standard output Time Limit: 1 second The problem statement is very easy. Given a number n you have to determine the largest p...
分类:其他好文   时间:2014-08-18 14:34:52    阅读次数:193
poj 3468(简单线段树区间更新)
A Simple Problem with Integers Time Limit: 5000MS   Memory Limit: 131072K Total Submissions: 61936   Accepted: 18934 Case Time Limit: 2000MS Description You have N i...
分类:其他好文   时间:2014-08-18 14:34:42    阅读次数:270
hdu1885Key Task(状态压缩+bfs)
题目链接: 啊哈哈,点我点我 这题和hdu1429是姊妹题  请参见传送门 题目: Key Task Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1187    Accepted Submission(s): ...
分类:其他好文   时间:2014-08-18 14:34:32    阅读次数:296
Drainage Ditches(最大流基础_增广路算法)
?? Drainage DitchesCrawling in process... Crawling failed Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64u Submit Status Description Every time it rains ...
分类:其他好文   时间:2014-08-18 14:33:42    阅读次数:263
poj 1135 Domino Effect (dijkratra算法)
Domino Effect Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 8848   Accepted: 2210 Description Did you know that you can use domino bones for other things...
分类:其他好文   时间:2014-08-18 14:33:32    阅读次数:241
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!