摘要: import xlwings as xw import pandas as pd import datetime import re import base64 import cv2 import pathlib import zipfile import shutil def down_pic(d 阅读全文
posted @ 2022-08-10 10:51 日天达人 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 安装 pip install retrying 简单使用 import random from retrying import retry @retry def do_something_unreliable(): if random.randint(0, 10) > 1: print("just 阅读全文
posted @ 2022-07-01 16:13 日天达人 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 1.app基本设置 #是否可见,是否增加新的工作蒲 app = xw.App(visible=True, add_book=False) #是否进行屏幕更新,关闭后可以提升代码执行速度 app.screen_updating = True 2.打开Excel wb = app.books.open( 阅读全文
posted @ 2022-04-19 11:54 日天达人 阅读(355) 评论(0) 推荐(0) 编辑
摘要: import cv2 def get_px(target_pic_path,template_pic_path): target_img = cv2.imread(target_pic_path, 0) template_img = cv2.imread(template_pic_path, 0) 阅读全文
posted @ 2021-12-27 18:10 日天达人 阅读(102) 评论(0) 推荐(0) 编辑
摘要: import os import logging import time from logging import handlers class Logger(): level_relations = { 'debug':logging.DEBUG, 'info':logging.INFO, 'war 阅读全文
posted @ 2020-11-24 16:33 日天达人 阅读(61) 评论(0) 推荐(0) 编辑
摘要: import os from PIL import ImageGrab # 获取当前目录 import time import sys import pandas as pd import win32api import win32con VK_CODE = { 'backspace': 0x08, 阅读全文
posted @ 2020-11-24 16:31 日天达人 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 1.定义和用法 :nth-child(n) 选择器匹配属于其父元素的第 N 个子元素,不论元素的类型。 n 可以是数字、关键词或公式。 <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> </ul> 1 2 3 4 5 6 选取上面结构里面的li ul 阅读全文
posted @ 2020-11-24 15:19 日天达人 阅读(3653) 评论(0) 推荐(0) 编辑
摘要: JavaScript 在父窗口中获取iframe中的元素 1 2 3 4 5 6 7 8 9 10 11 格式:window.frames["iframe的name值"].document.getElementById("iframe中控件的ID").click(); 实例:window.frame 阅读全文
posted @ 2020-11-24 14:37 日天达人 阅读(271) 评论(0) 推荐(0) 编辑
摘要: import win32guihwnd_title = dict()def get_all_hwnd(hwnd,tem): if win32gui.IsWindow(hwnd) and win32gui.IsWindowEnabled(hwnd) and win32gui.IsWindowVisib 阅读全文
posted @ 2020-11-23 11:36 日天达人 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 下载 Pdftk server:https://www.pdflabs.com/tools/pdftk-server/ 如果有密码,先把带密码的PDF的转成无密码的PDF pdftk 有密码.pdf input_pw 密码 output 无密码.pdf 如果不带密码,上一步可以跳过 提取附件(必须不 阅读全文
posted @ 2020-10-15 14:43 日天达人 阅读(921) 评论(0) 推荐(0) 编辑