紧张水蜜桃

文章
3
资源
0
加入时间
4年1月24天

Errors during downloading metadata for repository ‘AppStream‘: - Status code: 404 for http://mirro

centos8.0以上版本安装宝塔面板失败是因为yum源的问题,所有需要换源# 进入yum目录cd /etc/yum.repos.d# 删除目录下所有文件rm -rf ./*# 安装正确的源wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo# 生成缓存yum makecache然后进行宝塔安装就可了...

删除一个字符串中所有出现的给定子字符串

删除一个字符串中所有出现的给定子字符串给你两个字符串 s 和 part ,请你对 s 反复执行以下操作直到 所有 子字符串 part 都被删除:找到 s 中 最左边 的子字符串 part ,并将它从 s 中删除。请你返回从 s 中删除所有 part 子字符串以后得到的剩余字符串。一个 子字符串 是一个字符串中连续的字符序列。代码题解如下:int f(char *s ,char *part,int po,int len_part){ int i=0; int p=po;