10 2020 档案

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

点击右上角即可分享
微信分享提示