上一页 1 ··· 182 183 184 185 186 187 188 189 190 ··· 403 下一页
摘要: 001、 root@PC1:/home/test/test# ls a.txt root@PC1:/home/test/test# cat a.txt ## 测试数据 a b c d b d k 8 m 9 k d 0 r k b f f b 8 b 9 k d root@PC1:/home/tes 阅读全文
posted @ 2022-08-16 18:09 小鲨鱼2018 阅读(50) 评论(0) 推荐(0)
摘要: 001、 root@PC1:/home/test/test# ls a.txt root@PC1:/home/test/test# cat a.txt ## 测试数据 a b c d 3 8 6 9 0 r k 3 root@PC1:/home/test/test# awk '{for(i = 1; 阅读全文
posted @ 2022-08-16 17:56 小鲨鱼2018 阅读(276) 评论(0) 推荐(0)
摘要: 001、 c语言中整数类变量一共包含四个基本类型。 001、char型 002、 short int型 003、int型 004、long int型。 其中每种基本类型分为signed型 和 unsigned型, 也就是有符号型和无符号型, 但是有符号型和无符号型的长度是一样的。 #include 阅读全文
posted @ 2022-08-16 02:52 小鲨鱼2018 阅读(1243) 评论(0) 推荐(0)
摘要: 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 阅读(259) 评论(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 阅读(124) 评论(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 阅读(1078) 评论(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 阅读(113) 评论(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 阅读(58) 评论(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 阅读(53) 评论(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 阅读(109) 评论(0) 推荐(0)
上一页 1 ··· 182 183 184 185 186 187 188 189 190 ··· 403 下一页