上一页 1 ··· 190 191 192 193 194 195 196 197 198 ··· 408 下一页
摘要: 文章来源:https://www.jianshu.com/p/2475c3240a67 简化的短序列匹配程序 (map.py) 把short.fa中的序列比对到ref.fa, 输出短序列匹配到ref.fa文件中哪些序列的哪些位置。 f1 = r'E:\Bioinformatics\Python\pr 阅读全文
posted @ 2022-08-14 16:54 小鲨鱼2018 阅读(109) 评论(0) 推荐(0)
摘要: 001、 >>> test1 = "100 200" ## test1为字符串 >>> test1 '100 200' >>> a,b = test1.split() ## 拆分字符串,直接赋值给变量名 >>> a '100' >>> b '200' >>> test2 = [500, 1000] 阅读全文
posted @ 2022-08-14 16:32 小鲨鱼2018 阅读(495) 评论(0) 推荐(0)
摘要: 001、 方法1 root@PC1:/home/test3# ls a.txt test.py root@PC1:/home/test3# cat a.txt ## 测试文件 ACTGCCCTAAGTGCTCCTTCTGGC 2 ATAAGGTGCATCTAGTGCAGATA 25 TGAGGTAG 阅读全文
posted @ 2022-08-14 16:10 小鲨鱼2018 阅读(78) 评论(0) 推荐(0)
摘要: 001、方法1 root@PC1:/home/test3# ls test.py root@PC1:/home/test3# cat test.py ## 测试程序 #!/usr/bin/python result = "" str1 = "ACGTACGTACGTCACGTCAGCTAGAC" # 阅读全文
posted @ 2022-08-14 15:30 小鲨鱼2018 阅读(175) 评论(0) 推荐(0)
摘要: 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 阅读(402) 评论(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 阅读(45) 评论(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 阅读(42) 评论(0) 推荐(0)
摘要: 001、 在函数定义中, 形参名不能和函数内部的变量同名, 否则会发生冲突。 002、 定义不同函数时, 可以使用不能的形参名, 因为虽然同名,但是分别属于不同的函数。 003、 在函数调用过程中, 实参可以和形参同名, 因为实参不属于调用函数的部分。 阅读全文
posted @ 2022-08-14 01:41 小鲨鱼2018 阅读(1385) 评论(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 阅读(540) 评论(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 阅读(105) 评论(0) 推荐(0)
上一页 1 ··· 190 191 192 193 194 195 196 197 198 ··· 408 下一页