上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 126 下一页
摘要: asyncio.Semaphore是一个异步信号量,用于协调多个协程对共享资源的访问。 异步信号量在协程中的使用方式与线程中的普通信号量类似,但是它是非阻塞的。当信号量的计数器为0时,协程将会被阻塞,直到其他协程释放了该信号量。 import asyncio async def worker(sem 阅读全文
posted @ 2023-05-08 12:14 AngDH 阅读(1790) 评论(0) 推荐(1)
摘要: 这个函数会执行类似于 ps aux | grep python | awk '{print $2}' | xargs kill -9 的Linux命令。你可以将参数 process_name 替换为你想要杀死的进程名。 import subprocess def kill_process(proce 阅读全文
posted @ 2023-05-08 11:42 AngDH 阅读(308) 评论(0) 推荐(0)
摘要: https://github.com/JSREI 递归代理 https://github.com/JSREI/js-deep-proxy 阅读全文
posted @ 2023-05-07 16:27 AngDH 阅读(92) 评论(0) 推荐(0)
摘要: (function() { let _Function = Function; Function = function Function(string) { if (string.indexOf("bugger") > -1) { console.log("Hook Function debugge 阅读全文
posted @ 2023-05-07 15:04 AngDH 阅读(50) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-05-07 10:09 AngDH 阅读(21) 评论(0) 推荐(0)
摘要: 查看网络 阅读全文
posted @ 2023-05-06 13:36 AngDH 阅读(21) 评论(0) 推荐(0)
摘要: npm i http-server -g http-server -p 8881 http://localhost:8881/ main.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-eq 阅读全文
posted @ 2023-05-06 08:20 AngDH 阅读(90) 评论(0) 推荐(0)
摘要: from twisted.internet import defer, reactor from twisted.web.client import getPage def response(*args, **kwargs): print('返回页面内容') def callback(*args, 阅读全文
posted @ 2023-04-29 12:24 AngDH 阅读(36) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/ASUKA2020/article/details/84556451 阅读全文
posted @ 2023-04-27 01:47 AngDH 阅读(32) 评论(0) 推荐(0)
摘要: 干扰线是单一的颜色 import io from PIL import Image def del_noise(img): # 打开验证码图片 image = Image.open(io.BytesIO(img)) # image = Image.open('o4.png') # 获取图像的宽度和高 阅读全文
posted @ 2023-04-26 15:11 AngDH 阅读(783) 评论(0) 推荐(0)
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 126 下一页