上一页 1 ··· 149 150 151 152 153 154 155 156 157 ··· 367 下一页
摘要: 001、 root@PC1:/home/test3# ls a.txt test.py root@PC1:/home/test3# cat test.py ## 测试程序 #!/usr/bin/python in_file = open("a.txt", "r") lines = in_file.r 阅读全文
posted @ 2022-08-14 14:53 小鲨鱼2018 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 001、 >>> "{0}".format("xxx") ## 位置参数 'xxx' >>> "{0}.{1}.{2}".format("xxx", "yyy", "zzz") 'xxx.yyy.zzz' >>> "\t{0}.{1}.{2}".format("xxx", "yyy", "zzz") 阅读全文
posted @ 2022-08-14 14:09 小鲨鱼2018 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 001、 #include <stdio.h> int main(void) { int i; int result = 0; printf("i = "); scanf("%d", &i); while(i > 0) { result = result * 10 + i % 10; i /= 10 阅读全文
posted @ 2022-08-14 02:44 小鲨鱼2018 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 001、 在函数定义中, 形参名不能和函数内部的变量同名, 否则会发生冲突。 002、 定义不同函数时, 可以使用不能的形参名, 因为虽然同名,但是分别属于不同的函数。 003、 在函数调用过程中, 实参可以和形参同名, 因为实参不属于调用函数的部分。 阅读全文
posted @ 2022-08-14 01:41 小鲨鱼2018 阅读(1174) 评论(0) 推荐(0) 编辑
摘要: 001、 #include <stdio.h> //以下为函数定义 int max2(int a, int b) // 该句称为函数头;int 表示函数返回类型; max2表示函数名; int a 和int b为形参声明。 { if(a > b) return a; //此处花括号内为函数体 els 阅读全文
posted @ 2022-08-14 01:07 小鲨鱼2018 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 001、 元素为数组的数组: 二维数据 #include <stdio.h> int main(void) { int i, j; int tensu1[4][3] = {{91, 63, 78}, {67, 72, 46}, {89, 34, 53}, {32, 54, 34}}; int ten 阅读全文
posted @ 2022-08-14 00:28 小鲨鱼2018 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 001、 root@PC1:/home/test3# ls a.map test.py root@PC1:/home/test3# cat a.map ## 测试数据 1 snp1 1 1 snp2 2 1 snp3 3 1 snp4 4 1 snp5 5 1 snp6 6 2 snp7 1 2 s 阅读全文
posted @ 2022-08-13 23:40 小鲨鱼2018 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 001、 root@PC1:/home/test2# ls a.fasta scaffold.txt test.py root@PC1:/home/test2# cat a.fasta ## 测试fasta文件 >gene2 myc AGCTGCCTAAGC GGCATAGCTAATCG >gene 阅读全文
posted @ 2022-08-13 23:14 小鲨鱼2018 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 001、 (base) root@PC1:/home/test2# ls a.fasta test.py (base) root@PC1:/home/test2# cat a.fasta ## 测试fasta文件 >gene2 myc AGCTGCCTAAGC GGCATAGCTAATCG >gen 阅读全文
posted @ 2022-08-13 22:46 小鲨鱼2018 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 001、 (base) root@PC1:/home/test2# ls a.fasta test.py (base) root@PC1:/home/test2# cat a.fasta ## 测试fasta文件 >gene1 myc AGCTGCCTAAGC GGCATAGCTAATCG >gen 阅读全文
posted @ 2022-08-13 19:10 小鲨鱼2018 阅读(89) 评论(0) 推荐(0) 编辑
上一页 1 ··· 149 150 151 152 153 154 155 156 157 ··· 367 下一页