09 2021 档案

摘要:1.本地下载 yum 改成 zypper 2.fatal error: zlib.h: No such file or directory #include <zlib.h> zypper install zlib zypper install zlib-level 3. tar.xz文件解压 首先 阅读全文
posted @ 2021-09-30 09:57 Morgen会蝎子摆尾 阅读(110) 评论(0) 推荐(0)
摘要:1.paramiko.Transport 登录方式 1 import paramiko 2 3 class paramikoConnect(): 4 def transportconn(self,url,port,username,password): 5 6 #实例化一个transport对象 7 阅读全文
posted @ 2021-09-30 09:40 Morgen会蝎子摆尾 阅读(193) 评论(0) 推荐(0)
摘要:ssh(" mkdir C:\\test\\viruss") 1.报错信息如下:unable to execute command or shell on remote system : failed to execute process 根据官网查阅: 在脚本命令执行之前 cmd/c 换成 ssh 阅读全文
posted @ 2021-09-27 16:14 Morgen会蝎子摆尾 阅读(849) 评论(0) 推荐(0)
摘要:1.pytest中默认按照字母顺序执行测试用例 2.前置和后置模块 def setup_model(): print("用例执行前执行") def teardown_model(): print("用例执行完后执行") 3.在测试方法上添加装饰器 安装 :pip install pytest-ord 阅读全文
posted @ 2021-09-27 13:56 Morgen会蝎子摆尾 阅读(109) 评论(0) 推荐(0)
摘要:subprocess.Popen 阅读全文
posted @ 2021-09-27 13:54 Morgen会蝎子摆尾 阅读(51) 评论(0) 推荐(0)