码迷,mamicode.com
首页 >  
搜索关键字:do while循环    ( 14864个结果
Python按行读文件对比
1. 最基本的读文件方法:# File: readline-example-1.pyfile = open("sample.txt")while 1: line = file.readline() if not line: break pass # do something 一行一行得从文件读数据....
分类:编程语言   时间:2014-05-29 01:34:30    阅读次数:402
sed use case: Filter without editing
if we want to filter with sed pattern and just print the filtered lines without any further editing , we can do it like thisls -a1 ~ | sed -ne "/^\./p...
分类:其他好文   时间:2014-05-28 22:58:56    阅读次数:294
vcffilter 工具bug以及解决办法
1,使用说明:usage: vcffilter [options] options: -f, --info-filter specifies a filter to apply to the info fields of records, removes alleles which do not p...
分类:其他好文   时间:2014-05-28 03:00:31    阅读次数:371
Palindrome Number (回文数)
回文数是指这样的数字:正读和倒读都是一样的。如:595,2332都是回文数,234不是回文数。注意:负数不是回文数Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could ne...
分类:其他好文   时间:2014-05-27 23:44:17    阅读次数:459
shell中的Mysql查询
1 #!/bin/bash 2 #查询 3 echo -e 4 for i in `cat id.txt` 5 do 6 A=`mysql -h10 -uw -p2012 -Ne "select Id,Name,User_Logindate from info where Id=$i"`...
分类:数据库   时间:2014-05-27 18:08:04    阅读次数:341
linux tcp server demo
#include #include #include #include #include #include #define MAXLINE 80 #define SERV_PORT 6970 void do_echo(int sockfd, struct sockaddr *pcl...
分类:系统相关   时间:2014-05-27 18:06:51    阅读次数:435
Cause of 400 Bad Request Errors
The 400 Bad Request error displays inside the Internet browser window, just as web pages do.Cause of 400 Bad Request ErrorsThe 400 Bad Request error i...
分类:其他好文   时间:2014-05-27 17:51:33    阅读次数:278
为什么alertView弹出后button会消失的问题
按option后会有提示:Do not use the label object to set the text color or the shadow color. Instead, use the setTitleColor:forState: and setTitleShadowColor:f...
分类:其他好文   时间:2014-05-26 18:47:48    阅读次数:212
LeetCode: palindromes 题解
Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thinki...
分类:其他好文   时间:2014-05-26 18:07:52    阅读次数:217
dede后台文章无法编辑(出现空白)的解决办法
找到/archives_do.php文件,用记事本打开,查找header("location:{$gurl}?aid=$aid");将其替换成:echo "";保存,即可正常打开。
分类:其他好文   时间:2014-05-25 22:18:13    阅读次数:309
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!