上一页 1 ··· 196 197 198 199 200 201 202 203 204 ··· 341 下一页
摘要: Python逐行读取文件内容thefile= open("foo.txt") line = thefile.readline() while line: print line, line = thefile.readline() thefile.close()Windows下文件路径的写法:E:/c 阅读全文
posted @ 2015-04-18 19:45 emanlee 阅读(6116) 评论(0) 推荐(0)
摘要: Merging Data Adding Columns To merge two data frames (datasets) horizontally, use the merge function. In most cases, you join two data frames by one o 阅读全文
posted @ 2015-04-17 20:29 emanlee 阅读(13993) 评论(0) 推荐(0)
摘要: 删除文件第一行:sed -i '1d' filename删除文件最后一列:awk '{print $NF}' filename比较文件的方法:1)comm -3 --nocheck-order file1 file22) grep -v -f file1 file2: 输出file2中有file1中... 阅读全文
posted @ 2015-04-13 09:39 emanlee 阅读(27698) 评论(0) 推荐(0)
摘要: 头文件:#include fopen()是一个常用的函数,用来以指定的方式打开文件,其原型为: FILE * fopen(const char * path, const char * mode);【参数】path为包含了路径的文件名,mode为文件打开方式。mode有以下几种方式: 打开方... 阅读全文
posted @ 2015-04-11 18:25 emanlee 阅读(58131) 评论(0) 推荐(0)
摘要: 所有日期、时间的api都在datetime模块内。 简单示例如下: ## %Y年,%m月,%d日,%H时,%M分,%S秒,%f毫秒 import datetime print(datetime.datetime.now()) # 2022-01-28 11:09:01.529864 print(da 阅读全文
posted @ 2015-04-07 19:16 emanlee 阅读(92776) 评论(2) 推荐(4)
摘要: no display name and no $DISPLAY environment variable============================@Neil's answer is one (perfectly valid!) way of doing it, but you can ... 阅读全文
posted @ 2015-04-01 16:46 emanlee 阅读(54248) 评论(3) 推荐(0)
摘要: 系统环境:OS:RedHat5Python版本:Python2.7.3gcc版本:4.1.2各个安装包版本:scipy-0.11.0numpy-1.6.2nose-1.2.1lapack-3.4.2atlas-3.10.0依赖关系:scipy的安装需要依赖于numpy、lapack、atlas(后两... 阅读全文
posted @ 2015-03-31 21:25 emanlee 阅读(1356) 评论(0) 推荐(0)
摘要: The C++ executable module examples This page provides usage examples for the executable module. Extended documentation for all of the options can be f 阅读全文
posted @ 2015-03-31 21:09 emanlee 阅读(13517) 评论(0) 推荐(0)
摘要: 如果是Linux系统,随意打开一个终端;如果用的是Windows系统,那么打开命令提示符。 输入以下命令: perldoc Bio::SeqIO 以上命令的作用是查看Bio::SeqIO模块的文档是否存在,如果存在,则会有相应的文档输出,则安装了Bio::SeqIO模块;如果没有,说明Perl找不到 阅读全文
posted @ 2015-03-31 18:44 emanlee 阅读(4594) 评论(0) 推荐(0)
摘要: # 监控内存使用情况job_id=163997workdir=/share_bio/echo "population_sizes" >> $workdir/pbs/pbs.job.$job_id.mem_used.logswhile [ 1 -eq 1 ] do msg=`qstat -f $job... 阅读全文
posted @ 2015-03-28 21:52 emanlee 阅读(1968) 评论(0) 推荐(0)
上一页 1 ··· 196 197 198 199 200 201 202 203 204 ··· 341 下一页