随笔分类 -  Python-Basic

摘要:1、下载地址 https://registry.npmmirror.com/binary.html?path=chromedriver/ http://chromedriver.storage.googleapis.com/index.html 2、工程配置 3、使用 class BaseActio 阅读全文
posted @ 2022-03-15 10:49 代码诠释的世界 阅读(565) 评论(0) 推荐(0)
摘要:1. 处理方法 sudo apt-get install libxcb-xinerama0 参考链接: https://blog.csdn.net/u012308586/article/details/108509503 阅读全文
posted @ 2022-03-10 14:21 代码诠释的世界 阅读(414) 评论(0) 推荐(0)
摘要:一. pytest内部机制 pytest自带失败重跑机制,在运行中传入参数即可。 --lf 参数:运行上次失败的用例,如果没有则全部运行。 --ff参数:运行全部用例,上次失败的优先运行。 --lf, --last-failed rerun only the tests that failed at 阅读全文
posted @ 2022-03-04 10:44 代码诠释的世界 阅读(895) 评论(0) 推荐(1)
摘要:一、官网 https://docs.pytest.org/en/7.0.x/search.html?q=skip 二、相关使用方法 1. @pytest.mark.skip() 2. @pytest.mark.skip(reason='跳过原因') 3. @pytest.mark.skipif(ex 阅读全文
posted @ 2022-03-04 10:35 代码诠释的世界 阅读(88) 评论(0) 推荐(0)
摘要:1. 官网 https://playwright.dev/docs/intro 2. github https://github.com/microsoft/playwright-python 3. 安装 # 安装playwright库 pip install playwright # 安装浏览器驱 阅读全文
posted @ 2022-03-02 20:36 代码诠释的世界 阅读(2770) 评论(0) 推荐(0)
摘要:一. pep8 1. 官网 https://www.python.org/dev/peps/pep-0008/ https://pypi.python.org/pypi/flake8/ 2. 安装 pip install pep8 3. 使用 flake8 [file name or directo 阅读全文
posted @ 2022-03-02 17:50 代码诠释的世界 阅读(212) 评论(0) 推荐(0)
摘要:1. 第三方库 pip install jira 2. 官方文档 https://jira.readthedocs.io/examples.html 3. 使用方法 form jira import JIRA jira = JIRA('http://jira.***.com/', auth=(use 阅读全文
posted @ 2022-03-02 14:14 代码诠释的世界 阅读(501) 评论(0) 推荐(0)
摘要:1. 官网链接 https://pytest-dependency.readthedocs.io/en/stable/ 这篇文章讲的很细了, 想了解更多, 看官方文档 参考链接:http://t.zoukankan.com/se7enjean-p-13513131.html 阅读全文
posted @ 2022-02-17 16:54 代码诠释的世界 阅读(100) 评论(0) 推荐(0)
摘要:1、 解决方式 # 使用下列方式安装 python3 -m pip install xxx 参考链接:https://blog.csdn.net/sandalphon4869/article/details/107693774 阅读全文
posted @ 2022-02-16 20:51 代码诠释的世界 阅读(3532) 评论(0) 推荐(0)
摘要:class WsClient(object): def __init__(self, url): self.url = url async def test(self): async with websockets.connect(self.url + '/test') as websocket: 阅读全文
posted @ 2022-02-16 20:36 代码诠释的世界 阅读(988) 评论(0) 推荐(0)
摘要:1. 问题代码python self.browser.switch_to_window_handles(browser.window_handles[-1]) 2. 解决方法 self.browser.switch_to.window(browser.window_handles[-1]) 阅读全文
posted @ 2022-01-27 16:16 代码诠释的世界 阅读(1054) 评论(0) 推荐(0)
摘要:1. 安装第三方库 pip install websocket pip install websocket-client 2. 实战 import time from websocket import create_connection url = 'ws://192.168.1.100:8888/ 阅读全文
posted @ 2022-01-18 19:48 代码诠释的世界 阅读(970) 评论(0) 推荐(0)
摘要:1. 默认打印是一行的 debug_logger.info(f'[rsp json] {rsp.json()}') 2022-01-10 20:38:53,108 | root | INFO | [rsp json] {'code': 200, 'msg': 'SUCCESS', 'data': { 阅读全文
posted @ 2022-01-10 20:45 代码诠释的世界 阅读(491) 评论(0) 推荐(0)
摘要:1. 开始我是用sudo去安装, 可能用到了系统环境 sudo pip3 install -r requirements.txt 2. 改成如下即可 pip3 install -r requirements.txt --user 阅读全文
posted @ 2022-01-10 17:27 代码诠释的世界 阅读(97) 评论(0) 推荐(0)
摘要:1. 安装pip依赖报错 2. 处理方法 pip3 install -U pip setuptools 阅读全文
posted @ 2021-12-23 16:49 代码诠释的世界 阅读(699) 评论(0) 推荐(0)
摘要:主要是安装 brew install mysql-connector-c 其他部分参考:https://www.cnblogs.com/layezi/p/11297933.html 阅读全文
posted @ 2021-07-12 19:02 代码诠释的世界 阅读(69) 评论(0) 推荐(0)
摘要:jpypel库 调用java脚本 阅读全文
posted @ 2019-05-01 13:29 代码诠释的世界 阅读(463) 评论(0) 推荐(0)