08 2020 档案

摘要:工作原理: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 腹肌猿 阅读(2312) 评论(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 腹肌猿 阅读(952) 评论(0) 推荐(0) 编辑
摘要:subprocess 模块允许我们启动一个新进程,并连接到它们的输入/输出/错误管道,从而获取返回值。communicate(input,timeout): 和子进程交互,发送和读取数据。import subprocess res=subprocess.Popen("python",stdin=su 阅读全文
posted @ 2020-08-25 23:27 腹肌猿 阅读(1026) 评论(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 腹肌猿 阅读(5716) 评论(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 腹肌猿 阅读(149) 评论(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 腹肌猿 阅读(293) 评论(0) 推荐(0) 编辑

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