会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小鲨鱼2018
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
178
179
180
181
182
183
184
185
186
···
403
下一页
2022年8月20日
python中 pysam包FastxFile函数
摘要: 001、读取fasta文件 root@PC1:/home/test# ls a.fasta root@PC1:/home/test# cat a.fasta ## 测试数据 >Rosalind_1 ATCCAGCT >Rosalind_2 GGGCAACT >Rosalind_3 ATGGATCT
阅读全文
posted @ 2022-08-20 00:38 小鲨鱼2018
阅读(229)
评论(0)
推荐(0)
2022年8月19日
c语言中利用函数递归求阶乘
摘要: 001、 #include <stdio.h> int test(int n) // 定义函数 { if(n > 0) { return n * test(n - 1); // 调用函数自身, 终止条件是n = 0 } else { return 1; } } int main(void) { in
阅读全文
posted @ 2022-08-19 00:56 小鲨鱼2018
阅读(206)
评论(0)
推荐(0)
c语言中枚举类型
摘要: 001、 #include <stdio.h> enum set01 {aaa, bbb, ccc, ddd}; // 表示一定整数值的集合的枚举类型。0, 1, 2, 3 int main(void) { printf("aaa: %d\n", aaa); printf("bbb: %d\n",
阅读全文
posted @ 2022-08-19 00:20 小鲨鱼2018
阅读(41)
评论(0)
推荐(0)
2022年8月18日
c语言中使用冒泡排序法对数组进行排序
摘要: 001、 #include <stdio.h> #define NUMBER 5 void psort(int x[], int n) { int i, j; for(i = 0; i < n - 1; i++) //冒泡排序法, 外层循环每循环一次,将最大值,移动至最左端 { for(j = n
阅读全文
posted @ 2022-08-18 23:29 小鲨鱼2018
阅读(216)
评论(0)
推荐(0)
c语言中函数式宏和逗号运算符
摘要: 001、 #include <stdio.h> #define xxx(str) {putchar('\a'); puts(str);} // 函数使用; 花括号内为完整的代码块,末尾有分号, 因此main函数ti第一个if之后不再加分号; int main(void) { int i; print
阅读全文
posted @ 2022-08-18 23:02 小鲨鱼2018
阅读(117)
评论(0)
推荐(0)
c语言中函数式宏
摘要: 001、 #include <stdio.h> #define diff(x, y) (x - y) ## 函数式宏, diff函数中的参数,将按照 (x -y)在函数中展开 int main(void) { int a, b; double m, n; printf("a = "); scanf(
阅读全文
posted @ 2022-08-18 22:41 小鲨鱼2018
阅读(85)
评论(0)
推荐(0)
python 中实现DNA一致性序列计算
摘要: 001、 root@PC1:/home/test# ls a.fasta test.py root@PC1:/home/test# cat a.fasta ## 测试数据 >Rosalind_1 ATCCAGCT >Rosalind_2 GGGCAACT >Rosalind_3 ATGGATCT >
阅读全文
posted @ 2022-08-18 19:14 小鲨鱼2018
阅读(188)
评论(0)
推荐(0)
python中实现查找DNA中的motif
摘要: 001、方法1 root@PC1:/home/test# ls test.py root@PC1:/home/test# cat test.py ## 测试程序 #!/usr/bin/python str1 = "GATATATGCATATACTT" str2 = "ATAT" result = [
阅读全文
posted @ 2022-08-18 17:27 小鲨鱼2018
阅读(119)
评论(0)
推荐(0)
python 中 斐波那契兔子问题
摘要: 001、 root@PC1:/home/test# ls test.py root@PC1:/home/test# cat test.py ## 测试程序(起初1只兔子f[1],兔子每隔一个月有繁殖能力,没繁殖一次生3只兔子) #!/usr/bin/pyton f = [1] * 5 ## 生成一个
阅读全文
posted @ 2022-08-18 16:23 小鲨鱼2018
阅读(181)
评论(0)
推荐(0)
python中输出两条长度一致序列碱基不同的个数
摘要: 001、方法1 root@PC1:/home/test# ls test.py root@PC1:/home/test# cat test.py ## 测试程序 #!/usr/bin/python str1 = "GAGCCTACTAACGGGAT" ## 两天等长序列 str2 = "CATCGT
阅读全文
posted @ 2022-08-18 15:35 小鲨鱼2018
阅读(216)
评论(0)
推荐(0)
上一页
1
···
178
179
180
181
182
183
184
185
186
···
403
下一页
公告