(powershell 7) 安装及 Pycharm 上的配置
摘要:1. windows 上更新 powershell 下载地址(此处需要爬下墙): https://github.com/PowerShell/PowerShell 选择一个 LTS 版本 直接手动安装,完成完成后,会自动添加到 PATH 中,如果没有,可以手动配置 # 打开powershell $P
阅读全文
posted @
2024-01-20 22:55
bruce_he
阅读(511)
推荐(0) 编辑
(pytest) pytest-datadir 相关使用说明
摘要:pytest-datadir 是 pytest 第三方插件,用于测试数据的管理。 官方文档说明链接:https://pypi.org/project/pytest-datadir/ step1: 安装 pip install pytest-datadir -i https://pypi.tuna.t
阅读全文
posted @
2023-12-31 20:05
bruce_he
阅读(90)
推荐(0) 编辑
(selenium) 让浏览器在 webdriver 调用后保持打开状态
摘要:在使用 selenium 进行 webdriver 测试时,浏览器在调用完后将会自动关闭,即使没有调用 "driver.close()"。 有时候,可能需要特意将 浏览器保持开启状态,此时需要使用 detach 参数 # 'detach' = True 将不会自动关闭 options.add_exp
阅读全文
posted @
2023-12-30 15:43
bruce_he
阅读(1413)
推荐(0) 编辑
sqlalchemy+pandas:错误 'OptionEngine' object has no attribute 'execute','str' object has no attribute '_execute_on_connection'
摘要:场景:使用 sqlalchemy+pandas 1. 'OptionEngine' object has no attribute 'execute' import pandas as pd from sqlalchemy import create_engine, text engine = cr
阅读全文
posted @
2023-02-12 09:12
bruce_he
阅读(7297)
推荐(0) 编辑
(python)正则表达式
摘要:# -*- coding: utf-8 -*- import re def test_dot(): """ . => 匹配单个任意字符 """ str1 = "woodphogrammhootoohoingtesthoohhhkachhraghello\nworldtadhhtesttwhat1b2
阅读全文
posted @
2022-12-13 20:16
bruce_he
阅读(148)
推荐(0) 编辑
(python)json 格式文件
摘要:Json 数据格式: python 的内置模块; json 格式数据声明只能有一层顶级层(字典格式,可以是任意对象,如字符串,列表等,但实际工作中一般为字典对象,) json 对象本质是一个字符串对象; """ json.load() : json 数据格式文件的读取 json.dump(): js
阅读全文
posted @
2022-12-01 22:22
bruce_he
阅读(227)
推荐(0) 编辑