上一页 1 ··· 187 188 189 190 191 192 193 194 195 ··· 408 下一页
摘要: 001、 #include <stdio.h> #include <limits.h> ## CHAR_BIT定义了char型所占用的位数, 该变量定义在limits.h头文件中 int main(void) { printf("CHAR_BIT = %d\n", CHAR_BIT); return 阅读全文
posted @ 2022-08-16 02:40 小鲨鱼2018 阅读(266) 评论(0) 推荐(0)
摘要: 001、 #include <stdio.h> // 文件包含指令, 头文件 int main(void) { unsigned i; // 声明一个unsigned int 型的变量。 printf("i = "); scanf("%u", &i); // 此处从键盘输入,使用%u运算符 int 阅读全文
posted @ 2022-08-16 02:33 小鲨鱼2018 阅读(129) 评论(0) 推荐(0)
摘要: c语言中 1u: 表示是unsigned 1; 其二进制表示形式是 0000 0000 0000 0001. (此处假定int型的长度为2字节,1个字节8位); x & 1u: &符号表示按位操作的逻辑与运算,即两者都为1时,结果才为1. if (x & 1u)实质上就是判断x用二进制表示时,末尾的 阅读全文
posted @ 2022-08-16 02:12 小鲨鱼2018 阅读(1093) 评论(0) 推荐(0)
摘要: 对于整数内部的位,有4种逻辑运算。 a、逻辑与, &, 两者都为1时结果为1. b、逻辑或, |, 两者只要一个为1结果就为1. c、逻辑异或,^,有且只有一个为1结果才为1. d、反码, ~,如果是0,结果是1; 如果是1,结果为0. a & b; 对操作数的各二进制位进行逻辑运算。 5 & 4 阅读全文
posted @ 2022-08-16 01:02 小鲨鱼2018 阅读(114) 评论(0) 推荐(0)
摘要: 001、 root@PC1:/home/test# ls a.fasta target.txt test.py root@PC1:/home/test# cat test.py ## 测试程序 #!/usr/bin/python in_file = open("a.fasta", "r") targ 阅读全文
posted @ 2022-08-15 18:32 小鲨鱼2018 阅读(63) 评论(0) 推荐(0)
摘要: 001、 方法1 root@PC1:/home/test# ls a.fasta test.py root@PC1:/home/test# cat test.py ## 测试程序 #!/usr/bin/python in_file = open("a.fasta", "r") dict1 = dic 阅读全文
posted @ 2022-08-15 18:17 小鲨鱼2018 阅读(60) 评论(0) 推荐(0)
摘要: 001、 root@PC1:/home/test# ls a.fasta test.py root@PC1:/home/test# cat test.py ## 测试程序 #!/usr/bin/python in_file = open("a.fasta", "r") dict1 = dict() 阅读全文
posted @ 2022-08-15 18:04 小鲨鱼2018 阅读(115) 评论(0) 推荐(0)
摘要: 001、 root@PC1:/home/test# ls a.fasta test.py root@PC1:/home/test# cat test.py ## 测试程序 #!/usr/bin/python in_file = open("a.fasta", "r") dict1 = {} for 阅读全文
posted @ 2022-08-15 17:58 小鲨鱼2018 阅读(124) 评论(0) 推荐(0)
摘要: 001、 root@PC1:/home/test# ls a.fasta test.py root@PC1:/home/test# cat test.py ## 测试程序 #1/usr/bin/python in_file = open("a.fasta", "r") dict1 = dict() 阅读全文
posted @ 2022-08-15 17:46 小鲨鱼2018 阅读(116) 评论(0) 推荐(0)
摘要: 001、 root@PC1:/home/test# cat test.py ## 测试程序 #!/usr/bin/python in_file = open("a.fasta", "r") dict1 = {} for i in in_file: i = i.strip() if i.startsw 阅读全文
posted @ 2022-08-15 17:27 小鲨鱼2018 阅读(132) 评论(0) 推荐(0)
上一页 1 ··· 187 188 189 190 191 192 193 194 195 ··· 408 下一页