上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: % Python各版本均可使用, 但不推荐使用 格式化的字符串与被格式化的值的位置必须一一对应 例如: print('name: %s, age: %s' % ('tom', '21')) | 符号 | 功能 | | :--: | : : | | %s | 格式化字符串 | | %d | 格式化整数 阅读全文
posted @ 2022-06-22 11:52 漫漫长夜何时休 阅读(127) 评论(0) 推荐(0) 编辑
摘要: import cv2 class WVideoManager: def __init__(self, write_path: str, width: int, height: int, FPS: int = 5, WinName: str = 'WVideoManager'): fourcc = c 阅读全文
posted @ 2022-06-14 10:08 漫漫长夜何时休 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 安装 pycocotools 时出现错误 fatal error: Python.h: No such file or directory 解决方式 apt-get install python3.8-dev # 对应自己的python版本 阅读全文
posted @ 2022-04-13 11:20 漫漫长夜何时休 阅读(145) 评论(0) 推荐(0) 编辑
摘要: wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate sudo python3 get-pip.py linux 建立软连接 # 如果连接已存在 rm -rf /usr/bin/python3 # 建立软链接 ln -s / 阅读全文
posted @ 2022-04-12 18:43 漫漫长夜何时休 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 镜像操作 # 查看已有的镜像 docker images # 删除镜像 docker rmi -f (image id or image name) # 拉取镜像 docker pull image name 容器操作 # 后台运行, 将 nginx 重命名为 nginx01 并将容器的 80 端口 阅读全文
posted @ 2022-04-11 10:26 漫漫长夜何时休 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 到网址点击立即使用 https://www.huaweicloud.com/intl/zh-cn/product/swr.html 登录后进入镜像服务 按要求操作即可 相关命令 vi /etc/docker/daemon.json 输入内容 { "registry-mirrors": [ "http 阅读全文
posted @ 2022-04-10 19:35 漫漫长夜何时休 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 卸载之前的docker sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate 阅读全文
posted @ 2022-04-10 19:08 漫漫长夜何时休 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 新建一个hyper-v.cmd文件,内容为 pushd "%~dp0" dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt for /f %%i in ('findstr /i . hyper-v.txt 2^>nul' 阅读全文
posted @ 2022-04-10 11:31 漫漫长夜何时休 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 安装gym和atari环境 pip3 install gym pip3 install gym[atari] pip3 install gym[accept-rom-license] 安装box2d环境 安装环境 apt-get install -y swig 安装库 pip3 install bo 阅读全文
posted @ 2022-04-03 10:00 漫漫长夜何时休 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 通过sys.stdout得到print输出的内容,再进行保存 方式一: 一次运行 import sys class Logger(object): def __init__(self, file_path: str = "./Default.log"): self.terminal = sys.st 阅读全文
posted @ 2022-03-15 10:55 漫漫长夜何时休 阅读(3288) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页