上一页 1 ··· 74 75 76 77 78 79 80 81 82 ··· 186 下一页
摘要: #include <stdio.h> //⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽ //交换两个整型变量的值 main() { int a,b; scanf("%d%d",&a,&b); printf("a=%d,b=%d\n"); a=⑴; b=⑵; a=⑶; printf("a=%d,b=%d\n"); getch 阅读全文
posted @ 2023-02-06 20:12 myrj 阅读(69) 评论(0) 推荐(0)
摘要: 文件路径命令命令1: pwd //显示当前工作路径 命令2: dir //显 示当前路径下所有文件/文件夹 命令3: cd“文件夹路径”//更改工作文件路径 use“文件名.dta" //从当前文件路径读入数据 use"文件名.dta" ,clear //删除当前数据, 并从当前工作路径下读入数据 阅读全文
posted @ 2023-02-01 14:29 myrj 阅读(1884) 评论(0) 推荐(0)
摘要: import urllib3urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) #忽略警告 aa=requests.post(url,headers=head1,data=ap1,verify=False) 阅读全文
posted @ 2023-01-26 22:52 myrj 阅读(370) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <string.h> int fh(char ab[]) { int len=strlen(ab),a=0; for(a=0;a<=len;a++) if(ab[a]!=ab[len-a-1]) return 0; return 1; } ma 阅读全文
posted @ 2023-01-26 10:26 myrj 阅读(258) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <string.h> main() { char zf[7],zfa[7]; int a=0,b=0,c=0,len1,len2; gets(zf); gets(zfa); len1=strlen(zf),len2=strlen(zfa); w 阅读全文
posted @ 2023-01-26 10:16 myrj 阅读(255) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <string.h> main() { char ch[100]; int i=0,n=0; gets(ch); while(ch[i]!='\0') { if(i==0) { if(ch[i]>='a'&& ch[i]<='z') ch[i] 阅读全文
posted @ 2023-01-26 08:06 myrj 阅读(171) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<string.h> #include <stdlib.h> //利用<string.h>中的strtok函数,缺点就是异常复杂,但是优点就是可以用各种字符来分割输入的字符串 int main(){ char num[100000];//定义字符串 阅读全文
posted @ 2023-01-26 07:39 myrj 阅读(1059) 评论(0) 推荐(0)
摘要: #include <stdio.h> main() { struct sk{ int a;float b; }data,*p; p=&data; data.a=10; printf("%d\n",(*p).a); printf("%d\n",p->a); getchar(); } #include 阅读全文
posted @ 2023-01-24 19:38 myrj 阅读(35) 评论(0) 推荐(0)
摘要: #include <stdio.h> main() { char a[3][10]={"beijing","shanghai","tianjin"},*pa=a[0]; printf("%s\n",*(a+1)); printf("%s\n",a+1); printf("%s\n",*a+1); p 阅读全文
posted @ 2023-01-24 09:06 myrj 阅读(122) 评论(0) 推荐(0)
摘要: #include <stdio.h> int sx(int n) { int a; for(a=2;a<n;a++) if(n%a==0) return 0; return 1; } void sxa(int b) { int c=1,a=b; while(c<=5) { a=a+1; if(sx( 阅读全文
posted @ 2023-01-22 21:22 myrj 阅读(95) 评论(0) 推荐(0)
上一页 1 ··· 74 75 76 77 78 79 80 81 82 ··· 186 下一页