上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 382 下一页
摘要: 001、 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c #include <stdio.h> int main(void) { int i; puts("please input an integer."); printf("i = " 阅读全文
posted @ 2024-09-20 13:07 小鲨鱼2018 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@localhost test]# ls ## 两个测试c程序 test01.c test02.c [root@localhost test]# cat test01.c ## 后置递增运算符,表达式的值等于递增前的表达式的值 #include <stdio.h> int mai 阅读全文
posted @ 2024-09-20 08:47 小鲨鱼2018 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 001、 [sy20213040737@admin2 test]$ cat a.txt ## 测试数据 3 8 34 50 [sy20213040737@admin2 test]$ awk '{if(NR == 1){tmp = $1} else {print $1 - tmp; tmp = $1} 阅读全文
posted @ 2024-09-19 10:49 小鲨鱼2018 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@localhost test]# ls test.c [root@localhost test]# cat test.c #include <stdio.h> int main(void) { int i; printf("i = "); scanf("%d", &i); if 阅读全文
posted @ 2024-09-19 08:36 小鲨鱼2018 阅读(28) 评论(0) 推荐(0) 编辑
摘要: Linux 中 awk命令如何截取指定字段的前几个字符。 01、 [root@localhost test]# ls a.txt [root@localhost test]# cat a.txt ## 测试数据 34 kjhge 31 dsbed 23 kmfeq 35 ewkmn [root@lo 阅读全文
posted @ 2024-09-07 19:16 小鲨鱼2018 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 001、 df <- data.frame(A = c(1, 2, 3), B = c(4, 5, 6), C = c(7, 8, 9)) row.names(df) <- c("mm", "qq", "dd") df cbind(com1 = rownames(df), df) ## 行号转换为第 阅读全文
posted @ 2024-09-04 10:08 小鲨鱼2018 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@localhost test]# ls test.c [root@localhost test]# cat test.c #include <stdio.h> int main(void) { int n1,n2; puts("please input two integers 阅读全文
posted @ 2024-09-04 09:27 小鲨鱼2018 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 001、相等运算符 == != 002、关系运算符 > >= < <= 003、条件运算符 a ? b:c [root@localhost test]# ls test.c [root@localhost test]# cat test.c #include <stdio.h> int main(v 阅读全文
posted @ 2024-09-04 09:12 小鲨鱼2018 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 001、c语言中条件运算符 [root@localhost test]# cat test.c ## 测试程序 #include <stdio.h> int main(void) { int n1, n2, max; puts("please input two integers"); printf 阅读全文
posted @ 2024-09-03 12:59 小鲨鱼2018 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test]# ls a.txt idx.txt [root@PC1 test]# cat a.txt 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 阅读全文
posted @ 2024-09-02 10:59 小鲨鱼2018 阅读(36) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 382 下一页