摘要: Web页面弹窗的分类 弹窗通常有3种:Alert类型弹框、Confirm类型弹框、Prompt类型弹框,这种我们无法通过定位元素来操作。它们的具体特点如下: Alert弹窗:只有信息及确认按钮 Confirm弹窗:在Alert弹窗基础上增加了取消按钮 Prompt类型弹框:在Confirm的基础上增 阅读全文
posted @ 2023-08-08 10:22 徐俊112 阅读(65) 评论(0) 推荐(0)
摘要: 什么情况下,需要把元素放到可见区域我才可以操作呢? 懒加载/慢加载 必须把元素移动可见区域 """ 滚动条操作 """ import time from selenium import webdriver from selenium.webdriver.common.by import By fro 阅读全文
posted @ 2023-08-08 10:11 徐俊112 阅读(40) 评论(0) 推荐(0)
摘要: 只读控件的日期控件,如何实现输入? javascript 实现 调用execute_script """ js操作 execute_script """ import time from selenium import webdriver from selenium.webdriver.common 阅读全文
posted @ 2023-08-08 10:06 徐俊112 阅读(197) 评论(0) 推荐(0)
摘要: 数据 import pandas as pd data = [ {'DEPT_NAME': '苏州市', '项目类型': '0', '已经安装': 385, '确定安装': 64, '预计安装': 422, '省份': '江苏省'}, {'DEPT_NAME': '苏州市', '项目类型': '1' 阅读全文
posted @ 2023-08-04 16:17 徐俊112 阅读(107) 评论(0) 推荐(0)
摘要: 参数:columns column = ['项目名称', '项目建立时间', '地市', '计划安装', '客户确定安装', '安装完成', '已经安装百分比'] group.to_excel(writer, sheet_name=province, index=False, columns=col 阅读全文
posted @ 2023-08-04 14:22 徐俊112 阅读(38) 评论(0) 推荐(0)
摘要: 1.连接mysql数据库,基本数据查询流程 # 1.连接 conn = pymysql.connect(host='127.0.0.1', port=3306, user='root', password='', db='db8', charset='utf8') # 2.创建游标 cursor = 阅读全文
posted @ 2023-08-04 09:14 徐俊112 阅读(50) 评论(0) 推荐(0)
摘要: import os import sys from openpyxl import load_workbook class Excel: # 读取数据 def __init__(self, excel_path, sheet_name): """ :param excel_path: excel文件 阅读全文
posted @ 2023-07-31 17:57 徐俊112 阅读(45) 评论(0) 推荐(0)
摘要: import pandas as pd # 读取第一个Excel文件 df1 = pd.read_excel('excel_file1.xlsx') # 读取第二个Excel文件 df2 = pd.read_excel('excel_file2.xlsx') # 找出在df1中存在但不在df2中的行 阅读全文
posted @ 2023-07-31 15:31 徐俊112 阅读(179) 评论(0) 推荐(0)
摘要: import pandas as pd import os # 创建一个空的数据框列表 data_frames = [] # 获取当前脚本的目录路径 current_directory = os.getcwd() folder_path = os.path.join(current_director 阅读全文
posted @ 2023-07-31 09:44 徐俊112 阅读(481) 评论(0) 推荐(0)
摘要: 高德开发者文档 :https://lbs.amap.com/api/webservice/guide/api/direction#driving 第一步:首先要申请自己的:key 第二步:根据自己的需求,从开发者文档。找到自己需要的API 第三步:发送请求,解析数据 获取两个坐标之间最优的路线距离 阅读全文
posted @ 2023-07-27 09:16 徐俊112 阅读(261) 评论(0) 推荐(0)