- 博客(5)
- 收藏
- 关注
原创 selenium窗口操作
from selenium import webdriver from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By # 开启会话 driver = webdriver.Chrome() driver.get("http://ww
2021-04-21 13:23:30
137
原创 selenium强制、隐性、显性等待,以及点击元素被覆盖的解决方法
import time from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.support import expected_conditions from selenium.webdriver.support.wait import WebDriverWait driver = webdriver.Chrome() driver.implicitly_wai
2021-04-21 13:22:48
769
原创 基于python的日志封装
import logging import os from config import path def get_logger(name='root', logger_level='DEBUG', stream_handler_level='DEBUG', file=None, file_handler_level='INFO', fmt_str="tim
2021-04-21 13:07:36
70
1
原创 基于python的excel的操作
import openpyxl class ExcelHandler: def __init__(self, fpath): self.fpath = fpath # 元组可读性差点 # def read(self, sheet_name): # """读取文件""" # # 打开文件 # wb = openpyxl.open(self.fpath) # print(wb) # #
2021-04-21 13:05:18
104
原创 基于python数据库操作
基于python数据库操作 import pymysql from pymysql.cursors import DictCursor class DBHandler: def __init__(self, host='8.129.91.152', port=3306, user='future', password='123456',
2021-04-21 11:30:12
63
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人