摘要: Python 调用JS的四种方式 1、PyExecJS 方法 1)、安装PyExecJS pip install PyExecJS 2)、 PyExecJS 示例 import execjs jsstr = ''' function add() { let a = 1; let b = 2; ret 阅读全文
posted @ 2022-10-26 10:29 QYGQH 阅读(2272) 评论(1) 推荐(0) 编辑
摘要: ceshi_ini.py import configparser """ 读取配置文件信息 """ class ConfigParser(): config_dic = {} @classmethod def get_config(cls, config, sector, item): value 阅读全文
posted @ 2022-10-26 10:20 QYGQH 阅读(115) 评论(0) 推荐(0) 编辑
摘要: demo_dir.py import os """获取当前目录""" print(os.getcwd()) print(os.path.abspath(os.path.dirname(__file__))) """获取上一级目录""" print(os.path.abspath(os.path.di 阅读全文
posted @ 2022-10-26 10:19 QYGQH 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Mac下载安装谷歌浏览器驱动 下载对应的的谷歌浏览器对应版本驱动 1、查看自己谷歌浏览起版本 谷歌浏览器 >右上角三个点 >帮助 >关于Google Chrome 2、下载谷歌了浏览器驱动 进去下列网址 http://chromedriver.storage.googleapis.com/index 阅读全文
posted @ 2022-10-26 10:17 QYGQH 阅读(283) 评论(0) 推荐(0) 编辑