摘要: #include <stdio.h> main() { int a=5,b=4,c=3,d=2; if(a>b>c) printf("%d\n",d); else if((c-1>=d)==1) printf("%d\n",d+1); else printf("%d\n",d+2); getchar 阅读全文
posted @ 2022-10-17 20:59 myrj 阅读(41) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> main() { int x=4,y=4; int t=++x||++y; printf("%d %d %d\n",x,y,t); int a=1,b=1; t a&&--b; printf("%d %d %d\n",a,b,t); getchar(); } 阅读全文
posted @ 2022-10-17 20:44 myrj 阅读(50) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //int占用四个字节 //2的原码:00000000 00000000 00000000 00000010 //2取反后:11111111 11111111 11111111 11111101 //任何类型的数据在计算机中都是以二进制补码形式存储的 //正数的 阅读全文
posted @ 2022-10-17 20:12 myrj 阅读(126) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> main() { int x=10,y=20,t=0; if(x==y) t=x;x=y;y=t; printf("%d %d",x,y); int n=0; while(n++<=1) printf("%d\t",n); printf("%d\n",n); / 阅读全文
posted @ 2022-10-17 19:47 myrj 阅读(49) 评论(0) 推荐(0) 编辑
摘要: import psutil def guanbi(): TARGET = "adb.exe" [process.kill() for process in psutil.process_iter() if process.name() == TARGET] 阅读全文
posted @ 2022-10-17 11:02 myrj 阅读(90) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //每找到一个重复的元素,则最末尾前移一位,去重范围缩小一位 //找到重复元素后,此时数组下标之后的元素向前移一位 //程序后,数组中最右边的值是原数组最右边的值 main() { //int a[]={1,1,1,1,2,2,2,2,2,3,4,5,5,6,7 阅读全文
posted @ 2022-10-17 08:39 myrj 阅读(148) 评论(0) 推荐(0) 编辑