上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要: 打开多个文件时必备啊 1 use FileHandle; 2 3 my (%index,%fh); 4 # 创建句柄,这里利用gzip 压缩下 5 foreach my $k(keys %index){ 6 $fh{$k}=FileHandle->new("| gzip -c > ${k}_1.tx 阅读全文
posted @ 2021-04-23 16:30 天使不设防 阅读(179) 评论(0) 推荐(0) 编辑
摘要: substr EXPR,OFFSET,LENGTH,REPLACEMENT substr EXPR,OFFSET,LENGTH substr EXPR,OFFSET Extracts a substring out of EXPR and returns it. First character is 阅读全文
posted @ 2021-04-21 11:13 天使不设防 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 一个记录各种语言可能遇到的问题的论坛 :https://www.codegrepper.com/code-examples/ 阅读全文
posted @ 2021-04-16 17:34 天使不设防 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 随便写写博客还要被 布布扣之类的网站不经本人允许随意爬取文章,真TM恶臭又恶心,淦!!! 阅读全文
posted @ 2021-03-11 16:28 天使不设防 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 1 import std.stdio, std.string; 2 3 void main() 4 { 5 bool find(T)(T[] all, T sub) 6 { 7 foreach(each; all) 8 { 9 if(each == sub) return true; 10 } 11 阅读全文
posted @ 2021-03-09 10:32 天使不设防 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 没找到打开gz压缩文件的标准库,暂时调用系统命令打开gz压缩文件(参考:https://dlang.org/phobos/std_process.html#.Redirect.stdoutToStderr)。 缺点是文件全部会读入内存处理,对于大文件不太友好。 1 import std.stdio; 阅读全文
posted @ 2021-02-01 18:04 天使不设防 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 代码: 1 library(tidyverse) 2 separate(data = df,col=chr_pos,into=c("chr","pos"),sep="_") 阅读全文
posted @ 2021-01-11 10:31 天使不设防 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 其中包含了很多示例,可以参考学习;地址:http://rosettacode.org/wiki/Category:Programming_Languages 阅读全文
posted @ 2020-12-28 17:05 天使不设防 阅读(108) 评论(0) 推荐(0) 编辑
摘要: ref 作用 1 import std.stdio, std.string; 2 3 void main() 4 { 5 string[] color=["red","blue","cyan","grey"]; 6 7 writeln("raw:",color); 8 write("m1:"); 9 阅读全文
posted @ 2020-12-17 20:04 天使不设防 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 各个情况下数据类型异同 1 import std.stdio; 2 import std.string; 3 4 void main(){ 5 6 auto a="auto_a"; //immutable(char)[] 7 auto b="auto_b.dup".dup; // char[] 8 阅读全文
posted @ 2020-12-14 22:04 天使不设防 阅读(154) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页