摘要: 前言 python 类里面常用的方法有3个:静态方法(@staticmethod),类方法(@classmethod)和实例方法(self)本篇讲解这3种方法在使用上有什么区别。 函数 先从函数说起,方法跟函数是有区别的,经常有人容易混淆,函数定义是def 关键字定义(外面没class) def f 阅读全文
posted @ 2023-10-13 09:38 星钥无痕 阅读(207) 评论(0) 推荐(0) 编辑
摘要: https://github.com/SeleniumHQ/selenium/releases 阅读全文
posted @ 2023-08-24 17:30 星钥无痕 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 安装的allure-pytest的版本要是2.11.1之前的(之后的版本有test_result.historyId,但位置及方法不一样,我目前没研究怎么修改) 在依赖包Lib--site-packages--allure_pytest--listener.py文件里修改 test_result.h 阅读全文
posted @ 2023-08-24 15:09 星钥无痕 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 某些脚本需要用到Crypto库,但当pip install Crypto后仍提示:No module named ‘Crypto’,解决方案如下: pip uninstall crypto pycryptodomepip install pycryptodome12pycrypto和crypto是同 阅读全文
posted @ 2023-08-04 20:49 星钥无痕 阅读(1438) 评论(0) 推荐(0) 编辑
摘要: 在电脑的环境变量里新增 JAVA_TOOL_OPTIONS -Dfile.encoding=UTF8 然后在jenkins的系统配置-全局属性里新增键值对: JAVA_TOOL_OPTIONS:-Dfile.encoding=UTF8 LANG:zh.CN.UTF-8 PYTHONIOENCODIN 阅读全文
posted @ 2023-07-23 13:30 星钥无痕 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 在jenkis-系统配置里的环境变量新增 PATH = "C:\\WINDOWS\\SYSTEM32" 阅读全文
posted @ 2023-07-22 17:11 星钥无痕 阅读(33) 评论(0) 推荐(0) 编辑
摘要: [root@tianyi backups]# timedatectl list-timezones |grep Shanghai Asia/Shanghai [root@tianyi backups]# timedatectl set-timezone Asia/Shanghai 阅读全文
posted @ 2023-07-11 22:07 星钥无痕 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 将urllib3库的版本降到1.26.x的版本就好了 阅读全文
posted @ 2023-07-08 12:23 星钥无痕 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 报错内容: java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS 解决方案: 小米手机:在开发者选项里,把“USB调试 阅读全文
posted @ 2023-02-13 21:09 星钥无痕 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 1、pip版本不够,更新 python -m pip install --upgrade pip 2、不是pip问题,可能是版本不兼容,可以更新weditor版本或者是降低weditor版本 pip install --upgrade weditor #升级weditor版本 通过指定版本安装即可 阅读全文
posted @ 2023-02-12 19:37 星钥无痕 阅读(104) 评论(0) 推荐(0) 编辑