01 2021 档案
摘要:from openpyxl import load_workbookimport pandas as pdclass Write_to_excel(): def __init__(self,src,sheet,df): if src is None or sheet is None or df is
阅读全文
摘要:Python入门之类(class) 学习网址:https://www.cnblogs.com/chengd/articles/7287528.html class Foo: """初始化实例属性""" def __init__(self, name, age):#构造函数,类实例化是自动执行 sel
阅读全文
摘要:搬来的东西,太实用了 kettle实现整库迁移 文章目录 kettle实现整库迁移 1 背景 2 思路 2.1 获取表名 2.2 循环建表和同步 2.2.1 如何设置循环 2.2.2 建表和同步 2.2.1 获取变量 2.2.2 建表 2.2.3 单个表同步 3 数据库连接共享 4 其他 1 背景
阅读全文
摘要:原创学习网址: https://mp.weixin.qq.com/s/pF0plARvVvx946oF4r3HsQ 练习源码 链接:https://pan.baidu.com/s/12U5fLCBd2XO01yRnio71YA 提取码:ndxv
阅读全文
摘要:网上抄来的,验证过,好用,哈哈 https://blog.csdn.net/zhoujianfeng3/article/details/53667327?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2.c
阅读全文
摘要:对弹窗(alert)的处理 三种弹出框alert(一个按钮),confirm(两个确认,取消),prompt(两个按钮+输入框)。切换到弹框: switch_to_alert() 新版的selenium用: browser.switch_to.alert.accept()browser.switch
阅读全文
摘要:在页面操作过程中有时候点击某个链接会弹出新的窗口,这时就需要主机切换到新打开的窗口上进行操作。WebDriver提供了switch_to.window()方法,可以实现在不同的窗口之间切换。 以百度首页为例: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
阅读全文
摘要:selenium from selenium import webdriver get_12306 = webdriver.Firefox() get_12306.get('https://www.12306.cn/index/index.html') a_href = get_12306.find
阅读全文
该文被密码保护。