1。 调整用例执行顺序 默认按名称顺序执行。安装pip install pytest-ordering, 在测试方法上加装饰器@pytest.mark.last @pytest.mark.run(order=1) 2。遇到错误停止执行 -x 参数 pytest -x -v -s test_01.py ...
分类:
其他好文 时间:
2021-05-24 00:48:43
阅读次数:
0
docker pull nginx:latest docker run -d -p 2002:80 --name abcnginx nginx:latest docker exec -ti abcnginx /bin/bash 然后更新下 apt-get update apt-get install ...
分类:
Web程序 时间:
2021-05-24 00:17:39
阅读次数:
0
官网下载Jenkins https://www.jenkins.io/zh/download/ 构建jenkins镜像 # docker build -t jenkins:2.277.3 . from ubuntu:latest run sed -i 's/ports.ubuntu.com/mirr ...
分类:
其他好文 时间:
2021-05-04 16:25:44
阅读次数:
0
1. 安装 Use docker、package or source installations to install 第三方仓库 https://pkgs.org/download/haproxy 1.1 use docker docker run -it --rm haproxy:2.2 hap ...
分类:
其他好文 时间:
2021-05-04 16:22:39
阅读次数:
0
安装镜像:docker pull 镜像名称 查看所有运行容器:docker ps -a 运行容器:docker run --name 容器名称 进入指定容器:docker exec -it 容器名称 bash 重启容器:docker restart 容器名称 停止所有容器:docker stop $ ...
分类:
其他好文 时间:
2021-05-04 15:53:31
阅读次数:
0
官网下载镜像:https://www.raspberrypi.org/ 下载刷机工具 再往下翻 Manually install an operating system image 点击:See all download options 进入下载页面: 下载ubuntu server镜像,用工具刷入 ...
分类:
其他好文 时间:
2021-05-04 15:50:51
阅读次数:
0
1、【file】==》【settings】==》【build,execution,deployment】==》【compiler】==》勾选【build project automatically】。 2、【ctrl+shift+a】==》【actions】==》【registry】==》勾选【co ...
分类:
其他好文 时间:
2021-05-04 15:26:55
阅读次数:
0
Docker 四种网络模式 四种网络模式摘自 Docker 网络详解及 pipework 源码解读与实践 docker run 创建 Docker 容器时,可以用 --net 选项指定容器的网络模式,Docker 有以下 4 种网络模式: host 模式,使用 --net=host 指定。 cont ...
分类:
其他好文 时间:
2021-05-04 15:20:18
阅读次数:
0
?yolov5训练结果生成 yolov5每次train完成(如果没有中途退出) 都会在run目录下生成expX目录(X代表生成结果次数 第一次训练完成生成exp0 第二次生成exp1......以此类推) expX目录下会保存训练生成weights以及result.txt (其中weights是训练 ...
分类:
其他好文 时间:
2021-05-03 12:42:39
阅读次数:
0
1519A. Red and Blue Beans 问题简述 给定 \(r\) 个红豆,\(b\) 个蓝豆,差值 \(d\) ,要求我们进行为红蓝豆分组,使得红豆和蓝豆绝对值差值不大于 \(d\) ,即:一个红豆最多与 \(d + 1\) 个蓝豆组合,反之亦然 问题分析 设数量小的豆子为 \(x\) ...
分类:
其他好文 时间:
2021-05-03 12:35:10
阅读次数:
0