码迷,mamicode.com
首页 >  
搜索关键字:read    ( 19693个结果
shell中的while read用法
#!/bin/shpath_monitor=/opt/monitor_process.shpath_process_list=/opt/process.listcat $path_process_list | while read ido if [ x"$(ps -Af | grep "$i" | ...
分类:系统相关   时间:2015-03-17 09:00:29    阅读次数:251
第十六讲 循环遍历文件和元组
for和while退出循环时,执行else语句元组(tuples):圆括号括起来,逗号间隔,数据类型可以相同,也可以是不同类型。元组和列表的区别:元组可以修改,列表不可以修改eg1:tup=(1,2,3,4,5)fortintup:printtelse:print‘outfor‘eg2:查看帮助:>>>help(file.read)----..
分类:其他好文   时间:2015-03-17 02:11:08    阅读次数:117
测试3
# -*- coding: UTF-8 -*-import urllibrawdata=urllib.urlopen("http://open.lewei50.com/").read()print rawdata # -*- coding: UTF-8 -*-import urllibrawdat....
分类:其他好文   时间:2015-03-17 01:59:54    阅读次数:132
Mysql innodb 后台的7大线程与3大内存
A:一个master 线程(innodb 几乎在这个线程上实现有所有功能)B:一个lock 监控线程C:一个错误监控线程D:四个IO线程(insert buffer thread\log thread\write thread\read thread) 在windows 平台下可以通过 innod....
分类:数据库   时间:2015-03-17 00:38:03    阅读次数:367
Count and Say
Count and Say问题:The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11i...
分类:其他好文   时间:2015-03-16 22:50:49    阅读次数:147
图像处理的前沿工作组及资料
转载至http://bbs.image-pro.com.cn/read.php?tid=1168做图像处理方面的研究工作,最重要的两个问题:其一是要把握住国际上最前沿的内容;其二是所作工作要具备很高的实用背景。解决第一个问题的办法就是找出这个方向公认最牛的几个超级大拿(看看他们都在作什么)和最权威的...
分类:其他好文   时间:2015-03-16 22:43:16    阅读次数:154
ZOJ 2107 HDU 1007 Quoit Design(最近点对)
最近点对的裸题 利用分治去搞搞即可 代码: #include #include #include #include using namespace std; const int N = 100005; struct Point { double x, y; void read() { scanf("%lf%lf", &x, &y); } }...
分类:其他好文   时间:2015-03-16 21:19:59    阅读次数:131
shell中使用while循环ssh读取一行纪录
cat?33.txt?|while?read?LINE do ??result=`ssh?-n?root@192.168.0.101?date` ??echo?$result done ? ?-n? ??...
分类:系统相关   时间:2015-03-16 16:40:22    阅读次数:151
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!