摘要: #include <stdio.h> int gygb(int m,int n,int x) { int a; if(x==0) { for(a=m;a>=1;a--) if(m%a==0 && n%a==0) return a; return a; } else { for(a=m;a<m*n;a 阅读全文
posted @ 2022-12-11 20:31 myrj 阅读(159) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <string.h> struct data {char name[7];int age;} ab[5]={"张三",10,"李四",11,"张五",12,"李六",13,"陈七",14}; //编程将数组中所有姓张的年龄增加1,姓李的增加2, 阅读全文
posted @ 2022-12-11 19:54 myrj 阅读(378) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> struct data {char name[7];int age;} ab[5]={"张三",10,"李四",11,"张五",12,"李六",13,"陈七",14}; //编程将数组中所有姓张的年龄增加1,姓李的增加2,然后输出各个人的姓名与年龄 //中文字符 阅读全文
posted @ 2022-12-11 15:56 myrj 阅读(94) 评论(0) 推荐(0) 编辑
摘要: >>> import ast >>> aar='{"ab":1,"ac":2,"ad":3}' >>> aaxx=ast.literal_eval(aar) >>> aaxx {'ab': 1, 'ac': 2, 'ad': 3} >>> >>> aar='{"ab":1,"ac":2,"ad":3 阅读全文
posted @ 2022-12-11 15:38 myrj 阅读(28) 评论(0) 推荐(0) 编辑