隐藏页面特效

05 2022 档案

摘要:centos7 # 先配阿里源 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirror 阅读全文 »
posted @ 2022-05-27 18:50 我在路上回头看 阅读(166) 评论(0) 推荐(0) 编辑
摘要:概述 go语言中的MPG线程模型对两级线程模型进行了一定程度的改进,使它能够更加灵活的进行线程之间的调度。 它由3个主要模块构成,如下图: MPG的3个主要模块以及功能,我们通过下表所示。 | 模块 | 功能说明 | | | | | Machine | 一个Machine对应一个内核线程,相当于内核 阅读全文 »
posted @ 2022-05-20 10:49 我在路上回头看 阅读(225) 评论(0) 推荐(0) 编辑
摘要:>>> docker network create -d bridge bridge-net # 创建一个名为bridge-net的网络 # 测试,启动两个容器,并且接入到bridge-net网络中 >>> docker run -it --name alpine1 --network bridge 阅读全文 »
posted @ 2022-05-18 12:10 我在路上回头看 阅读(188) 评论(0) 推荐(0) 编辑
摘要:问题 我们想在某个集合中找出最大或最小的N个元素 解决方案 heapq模块中有两个函数nlargest()和nsmallest() import heapq nums = [1,8,2,23,7,-4,18,23,42,37,2] print(heapq.nlargest(3,nums)) # [4 阅读全文 »
posted @ 2022-05-16 18:21 我在路上回头看 阅读(198) 评论(0) 推荐(0) 编辑
摘要:在函数内,yield语句可以作为表达式使用,出现在赋值运算符的右边,例如: def receiver(): print("Ready to receive") while True: n = (yield) print("go %s", n) 以这种方式使用yield语句的函数称为协程,向函数发送值 阅读全文 »
posted @ 2022-05-16 02:58 我在路上回头看 阅读(86) 评论(0) 推荐(0) 编辑
摘要:前置步骤 # 如之前安装过docker,请先删除 yum remove docker docker-common docker-selinux docker-engine centos7 # centos7 # 先配阿里源 mv /etc/yum.repos.d/CentOS-Base.repo / 阅读全文 »
posted @ 2022-05-11 21:54 我在路上回头看 阅读(94) 评论(0) 推荐(0) 编辑
摘要:重点 提一件拉胯的事:别去参考阿里和华为云官方镜像上面的解决办法,本人试了几遍,没luan用。拉胯!!!!!!!! 报错具体信息 Errors during downloading metadata for repository 'epel': - Status code: 404 for http 阅读全文 »
posted @ 2022-05-11 21:21 我在路上回头看 阅读(3720) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示