摘要: #include<stdio.h> #求正整数的所有质数因子(如:180:2 2 3 3 5) main() { int m,i; scanf("%d",&m); for(i=2;i<=m;i++) { if(m%i==0) { printf("%3d",i); m=m/i; i=i-1; } } 阅读全文
posted @ 2023-04-20 20:06 myrj 阅读(123) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <string.h> void del_str(char a[],int n) { while(a[n-1]=a[n])n++; } main() { char a[]="adsfasd"; int n=3; del_str(a,n); put 阅读全文
posted @ 2023-04-20 16:16 myrj 阅读(86) 评论(0) 推荐(0) 编辑
摘要: with open('file.txt', 'r') as f: lines = f.readlines() with open('file.txt', 'w') as f: for line in lines: if line.strip(): f.write(line) 首先,我们使用`open 阅读全文
posted @ 2023-04-20 10:07 myrj 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 国内免费GPT https://chat.tuxiaozhi.com/?bd_vid=11464506001370123049 阅读全文
posted @ 2023-04-20 10:05 myrj 阅读(498) 评论(0) 推荐(0) 编辑
摘要: 全国 阅读全文
posted @ 2023-04-20 07:57 myrj 阅读(8) 评论(0) 推荐(0) 编辑
摘要: AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK' 安装gallery-dl时出的提示: 解决方法: pip uninstall pyopenssl pip uninstall gallery-dl 阅读全文
posted @ 2023-04-20 07:30 myrj 阅读(908) 评论(0) 推荐(0) 编辑