会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
星钥无痕
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2023年10月13日
类里面静态方法(@staticmethod),类方法(@classmethod)和实例方法(self)的使用与区别
摘要: 前言 python 类里面常用的方法有3个:静态方法(@staticmethod),类方法(@classmethod)和实例方法(self)本篇讲解这3种方法在使用上有什么区别。 函数 先从函数说起,方法跟函数是有区别的,经常有人容易混淆,函数定义是def 关键字定义(外面没class) def f
阅读全文
posted @ 2023-10-13 09:38 星钥无痕
阅读(323)
评论(0)
推荐(0)
2023年8月24日
Selenium Grid分布式 的Selenium server jar包下载地址
摘要: https://github.com/SeleniumHQ/selenium/releases
阅读全文
posted @ 2023-08-24 17:30 星钥无痕
阅读(370)
评论(0)
推荐(0)
allure报告中firefox信息不展示(多浏览器或多线程执行时只显示一个浏览器的日志)
摘要: 安装的allure-pytest的版本要是2.11.1之前的(之后的版本有test_result.historyId,但位置及方法不一样,我目前没研究怎么修改) 在依赖包Lib--site-packages--allure_pytest--listener.py文件里修改 test_result.h
阅读全文
posted @ 2023-08-24 15:09 星钥无痕
阅读(39)
评论(0)
推荐(0)
2023年8月4日
No module named “Crypto” 解决方案
摘要: 某些脚本需要用到Crypto库,但当pip install Crypto后仍提示:No module named ‘Crypto’,解决方案如下: pip uninstall crypto pycryptodomepip install pycryptodome12pycrypto和crypto是同
阅读全文
posted @ 2023-08-04 20:49 星钥无痕
阅读(4297)
评论(0)
推荐(0)
2023年7月23日
jenkins中邮件推送内容或控制台输出乱码
摘要: 在电脑的环境变量里新增 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 星钥无痕
阅读(26)
评论(0)
推荐(0)
2023年7月22日
Jenkins-无法识别cmd
摘要: 在jenkis-系统配置里的环境变量新增 PATH = "C:\\WINDOWS\\SYSTEM32"
阅读全文
posted @ 2023-07-22 17:11 星钥无痕
阅读(54)
评论(0)
推荐(0)
2023年7月11日
虚拟机时间同步本地时间
摘要: [root@tianyi backups]# timedatectl list-timezones |grep Shanghai Asia/Shanghai [root@tianyi backups]# timedatectl set-timezone Asia/Shanghai
阅读全文
posted @ 2023-07-11 22:07 星钥无痕
阅读(46)
评论(0)
推荐(0)
2023年7月8日
报错urllib3 v2.0 only supports OpenSSL 1.1.1+, currently
摘要: 将urllib3库的版本降到1.26.x的版本就好了
阅读全文
posted @ 2023-07-08 12:23 星钥无痕
阅读(432)
评论(0)
推荐(0)
2023年2月13日
appium启动手机报错解决
摘要: 报错内容: java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS 解决方案: 小米手机:在开发者选项里,把“USB调试
阅读全文
posted @ 2023-02-13 21:09 星钥无痕
阅读(150)
评论(0)
推荐(0)
2023年2月12日
安装weditor失败解决方法
摘要: 1、pip版本不够,更新 python -m pip install --upgrade pip 2、不是pip问题,可能是版本不兼容,可以更新weditor版本或者是降低weditor版本 pip install --upgrade weditor #升级weditor版本 通过指定版本安装即可
阅读全文
posted @ 2023-02-12 19:37 星钥无痕
阅读(209)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告