10 2020 档案
摘要:描述符定义 描述符是一种类,我们把实现了__get__()、__set__()和__delete__()中的其中任意一种方法的类称之为描述符。 描述符的作用是用来代理一个类的属性,需要注意的是描述符不能定义在被使用类的构造函数中,只能定义为类的属性,它只属于类的,不属于实例,我们可以通过查看实例和类
阅读全文
摘要:import openpyxl import warnings warnings.filterwarnings("ignore") """ https://openpyxl.readthedocs.io/en/stable/styles.html """ #Python Excel Create a
阅读全文
摘要:最近在用pyautogui写自动化的脚本时,用pyautogui.locateonscreen("shell.PNG")函数来判断机器成功进入EFIshell会一直返回None。 且shell.PNG在当前屏幕置顶可见,但就是抓不到。 解决方法:安装opencv,并在locateOnScreen添加
阅读全文
摘要:import win32gui import win32con #获取所有窗口句柄 hwnd_title = {} def get_all_hwnd(hwnd, mouse): if (win32gui.IsWindow(hwnd) and win32gui.IsWindowEnabled(hwnd
阅读全文