上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 25 下一页
摘要: 描述符定义 描述符是一种类,我们把实现了__get__()、__set__()和__delete__()中的其中任意一种方法的类称之为描述符。 描述符的作用是用来代理一个类的属性,需要注意的是描述符不能定义在被使用类的构造函数中,只能定义为类的属性,它只属于类的,不属于实例,我们可以通过查看实例和类 阅读全文
posted @ 2020-10-20 22:30 我的腹肌不见了 阅读(177) 评论(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 我的腹肌不见了 阅读(148) 评论(0) 推荐(0)
摘要: 最近在用pyautogui写自动化的脚本时,用pyautogui.locateonscreen("shell.PNG")函数来判断机器成功进入EFIshell会一直返回None。 且shell.PNG在当前屏幕置顶可见,但就是抓不到。 解决方法:安装opencv,并在locateOnScreen添加 阅读全文
posted @ 2020-10-15 14:00 我的腹肌不见了 阅读(6144) 评论(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 我的腹肌不见了 阅读(5593) 评论(0) 推荐(1)
摘要: 工作原理:popen先执行fork,然后调用exec执行cmdstring,并返回一个标准的I/O文件指针。 头文件:#include<stdio.h> 原型:FILE *popen(const char *cmdstring, const char *type) cmdstring:包含shell 阅读全文
posted @ 2020-08-30 00:06 我的腹肌不见了 阅读(2353) 评论(0) 推荐(0)
摘要: C 库函数 - strftime() 描述 C 库函数 size_t strftime(char *str, size_t maxsize, const char *format, const struct tm *timeptr) 根据 format 中定义的格式化规则,格式化结构 timeptr 阅读全文
posted @ 2020-08-29 22:47 我的腹肌不见了 阅读(984) 评论(0) 推荐(0)
摘要: subprocess 模块允许我们启动一个新进程,并连接到它们的输入/输出/错误管道,从而获取返回值。communicate(input,timeout): 和子进程交互,发送和读取数据。import subprocess res=subprocess.Popen("python",stdin=su 阅读全文
posted @ 2020-08-25 23:27 我的腹肌不见了 阅读(1049) 评论(0) 推荐(0)
摘要: xpath helper下载 链接: https://pan.baidu.com/s/1uhWs_CxVTfU25VI5Md-CAg 提取码: wstj 不要将下载后的.crx直接拖入chrome://extensions/安装,会提示无效 下载后得到xpath-helper.crx,将其改变扩展名 阅读全文
posted @ 2020-08-11 20:55 我的腹肌不见了 阅读(5786) 评论(0) 推荐(2)
摘要: import asyncio import time async def shop(delay, what): print(what) await asyncio.sleep(delay) print(what,"...出来了") async def main(): task1 = asyncio. 阅读全文
posted @ 2020-08-08 01:46 我的腹肌不见了 阅读(153) 评论(0) 推荐(0)
摘要: python实现截屏的两种方式 运行前请先安装相关的三方库 1.pyautogui 2.pillow import pyautogui pyautogui.screenshot("pyautogui.png") from PIL import ImageGrab ImageGrab.grab().s 阅读全文
posted @ 2020-08-05 23:05 我的腹肌不见了 阅读(316) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 25 下一页