会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
江南王小帅
春风得意马蹄疾,一日看尽长安花
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
13
14
15
16
17
18
19
20
21
···
29
下一页
2021年12月2日
指针系列五(数组指针)
摘要: //数组指针 //int (*p2)[5] int temp[5] = { 1,2,3,4,5 }; //int *p2 = temp; //用指针直接指向数组的首地址,后面可以直接输出 //int(*p2)[5] = temp; // 用数组指针的时候,要是数组指针指向一个地址,否则报错,如注释部
阅读全文
posted @ 2021-12-02 09:36 江南王小帅
阅读(36)
评论(0)
推荐(0)
2021年12月1日
江南王小帅
摘要: 一路跌跌撞撞 迷迷茫茫 只想快点进步 提升自己 记录代码路上的点点滴滴 或许我不足够优秀 但是我比昨日优秀
阅读全文
posted @ 2021-12-01 17:02 江南王小帅
阅读(35)
评论(0)
推荐(0)
指针系列四(指针数组 )
摘要: //指针数组 int *p2[5]; //根据优先级的结合方式,先结合p1与[5],即p1[5],故 首先是一个数组 //而前方有一个指针符号 故 是指针数组 // 下标 0 1 2 3 4 // 元素 int* int* int* int* int* //指针数组是一个数组,每个数组元素存放一个指
阅读全文
posted @ 2021-12-01 16:44 江南王小帅
阅读(50)
评论(0)
推荐(0)
指针系列三(指针和数组的区别)
摘要: //指针和数组的区别 char str[] = "I love fishC.com!"; int count = 0; while (*str++ != '\0') // 报错,str 是一个地址,不是可修改的左值 { count++; } printf("一共有%d个字符\n", count);
阅读全文
posted @ 2021-12-01 16:26 江南王小帅
阅读(33)
评论(0)
推荐(0)
指针系列二(指针与数组)
摘要: //指针与数组 char str[120]; printf("please input a string:\n"); scanf_s("%s\n", str); printf("your str is :%p\n", str); printf("your str is :%p\n", &str[0]
阅读全文
posted @ 2021-12-01 15:30 江南王小帅
阅读(36)
评论(0)
推荐(0)
指针系列一(指針的定義)
摘要: //指針的定義 char a = 'f'; int f = 123; char *pa = &a; int *pb = &f; printf("a = %c\n", *pa); printf("f = %d\n", *pb); *pa = 'c'; *pb = 1; printf(" now a =
阅读全文
posted @ 2021-12-01 15:27 江南王小帅
阅读(35)
评论(0)
推荐(0)
2021年11月30日
利用递归函数求阶乘
摘要: #include<stdio.h> int fac(int n) { int f; if (n<0) { printf("input number Error!\n"); } else if(n == 0 || n == 1) { f = 1; } else { f = fac(n - 1)*n;
阅读全文
posted @ 2021-11-30 14:37 江南王小帅
阅读(599)
评论(0)
推荐(0)
2021年11月26日
python—弹框
摘要: if Read_Mac_str == VBS_Mac_str: # 此处为解决问题的代码,其中tkinter为上方import的tkinter root = tkinter.Tk() root.withdraw() tkinter.messagebox.showinfo('提示', 'Write M
阅读全文
posted @ 2021-11-26 10:22 江南王小帅
阅读(97)
评论(0)
推荐(0)
python 大小写转换
摘要: #统一小写 Read_Mac_str = Read_Mac_str.lower() VBS_Mac_str = VBS_Mac_str.lower()
阅读全文
posted @ 2021-11-26 10:20 江南王小帅
阅读(415)
评论(0)
推荐(0)
截取文本某一行的字符串
摘要: Read_Mac_str = '' VBS_Mac_str = '' with open('./Check_Mac.txt', 'r') as f: for num, line in enumerate(f): if num == 10: print(line) Read_Mac_str = lin
阅读全文
posted @ 2021-11-26 10:19 江南王小帅
阅读(62)
评论(0)
推荐(0)
上一页
1
···
13
14
15
16
17
18
19
20
21
···
29
下一页
公告