上一页 1 ··· 188 189 190 191 192 193 194 195 196 ··· 403 下一页
摘要: 001、首个字符查找 >>> seq = 'ATGTGACCCTGATTTTGAATGatgAtgAtGaTGaTg' ## 测试字符串 >>> seq.find('ATG') ## 字符串内建函数find返回第一个匹配字符的索引 0 >>> seq.find('GAC') 4 >>> seq.fi 阅读全文
posted @ 2022-08-12 14:32 小鲨鱼2018 阅读(490) 评论(0) 推荐(0)
摘要: 001、 (base) root@PC1:/home/test2# ls a.fasta test.py (base) root@PC1:/home/test2# cat a.fasta ## 测试fasta文件 >OR4F5_ENSG00000186092_ENST00000641515_61_1 阅读全文
posted @ 2022-08-12 13:30 小鲨鱼2018 阅读(103) 评论(0) 推荐(0)
摘要: 001、 fasta序列迭代 (base) root@PC1:/home/test2# cat a.fasta ## 测试fasta文件 >gene1 myc AGCTGCCTAAGC GGCATAGCTAATCG >gene2 jun ACCGAATCGGAGCGATG GGCATTAAAGATC 阅读全文
posted @ 2022-08-12 12:39 小鲨鱼2018 阅读(382) 评论(0) 推荐(0)
摘要: 001、 #include <stdio.h> int main(void) { printf("!0 = %d\n", !0); // !+ 0, 返回1 printf("!5 = %d\n", !5); printf("!-3 = %d\n", !-3); // ! + 非0, 返回0 retu 阅读全文
posted @ 2022-08-12 01:01 小鲨鱼2018 阅读(1062) 评论(0) 推荐(0)
摘要: 001、 #include <stdio.h> int main(void) { int i; do { puts("0: stone; 1: scissors; 2: colth"); printf("i = "); scanf("%d", &i); if(i > 2 || i <0) { put 阅读全文
posted @ 2022-08-12 00:56 小鲨鱼2018 阅读(439) 评论(0) 推荐(0)
摘要: 001、 #include <stdio.h> int main(void) { int i; do { int random; printf("random = "); scanf("%d", &random); if (random % 2) { puts("odd"); } else { pu 阅读全文
posted @ 2022-08-12 00:42 小鲨鱼2018 阅读(271) 评论(0) 推荐(0)
摘要: 001、 #include <stdio.h> int main(void) { int i; printf("i = "); scanf("%d", &i); switch(i % 3) ## 条件 { case 0: puts("can be devided by 3."); break; ## 阅读全文
posted @ 2022-08-12 00:13 小鲨鱼2018 阅读(147) 评论(0) 推荐(0)
摘要: 001\ #include <stdio.h> int main(void) { int i, j, max; puts("please input two integers"); printf("i = "); scanf("%d", &i); printf("j = "); scanf("%d" 阅读全文
posted @ 2022-08-11 23:30 小鲨鱼2018 阅读(747) 评论(0) 推荐(0)
摘要: 001、 #include <stdio.h> int main(void) { int i, j; printf("i = "); scanf("%d", &i); printf("j = "); scanf("%d", &j); printf("last digit of i: %d\n", i 阅读全文
posted @ 2022-08-11 22:58 小鲨鱼2018 阅读(261) 评论(0) 推荐(0)
摘要: 001、0在linux 中表示True? root@PC1:/home/test2# [ 3 -gt 1 ] ## 判断为真, 这$?为0, True为0?? root@PC1:/home/test2# echo $? 0 002、python 中True表示为1 >>> False + False 阅读全文
posted @ 2022-08-11 22:01 小鲨鱼2018 阅读(363) 评论(0) 推荐(0)
上一页 1 ··· 188 189 190 191 192 193 194 195 196 ··· 403 下一页