上一页 1 2 3 4 5 6 ··· 64 下一页
摘要: 不验证证书减少交互 curl -k -f {$url} -o {dest_path} python requests def download_file_with_requests(url: str, file_path: str): with Session() as session: sessi 阅读全文
posted @ 2024-09-14 14:09 vx_guanchaoguo0 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 安装 apt install gdb 查看跟踪信息 strace -T -tt -e trace=all -p pid 查看进程打开的文件 lsof -p pid gdb gdb -p pid 查看上下文 py-list 堆栈 py-bt py-bt-full 变量 py-print py-loca 阅读全文
posted @ 2024-09-14 09:37 vx_guanchaoguo0 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 下载 git clone https://github.com/Yggdroot/indentLine.git ~/.vim/pack/vendor/start/indentLine 配置 vim -u NONE -c "helptags ~/.vim/pack/vendor/start/inden 阅读全文
posted @ 2024-09-13 16:09 vx_guanchaoguo0 阅读(4) 评论(0) 推荐(0) 编辑
摘要: https curl 安装 apt install apt-transport-https ca-certificates curl software-properties-common 添加信任秘钥 wget -qO - https://download.sublimetext.com/subli 阅读全文
posted @ 2024-09-13 15:57 vx_guanchaoguo0 阅读(5) 评论(0) 推荐(0) 编辑
摘要: with open('request1.json', 'r',encoding='utf8') as f: data_json = json.load(f) with open('request1.json', 'w', encoding='utf8') as f: json.dump(data_j 阅读全文
posted @ 2024-09-13 11:00 vx_guanchaoguo0 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 这个可以再浏览器端处理 test.com a.test.com b.test.com document.domain="test.com"; 阅读全文
posted @ 2024-09-13 09:59 vx_guanchaoguo0 阅读(4) 评论(0) 推荐(0) 编辑
摘要: import asyncio import random import threading from concurrent.futures import ThreadPoolExecutor import time def blocking_task(x): time.sleep(2) thread 阅读全文
posted @ 2024-09-12 18:12 vx_guanchaoguo0 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 异步下载文件 async def download_file_with_curl(url: str, destination: str): curl_command = [ "curl", "-k", f"{url}", "-o", destination, ] process = await as 阅读全文
posted @ 2024-09-12 09:39 vx_guanchaoguo0 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 线程池 都在一个进程内 GIL 不适合密集型计算 共享进程资源,存在不安全的线程 from concurrent.futures import ThreadPoolExecutor def task(n): return n * 2 if __name__ == '__main__': with T 阅读全文
posted @ 2024-09-12 09:21 vx_guanchaoguo0 阅读(5) 评论(0) 推荐(0) 编辑
摘要: ds: Dataset = read_file(img) for element in ds: if element.tag != pydicom.dataelem.Tag(0x7FE0, 0x0010): tag = element.tag tag_name = element.name valu 阅读全文
posted @ 2024-09-11 18:21 vx_guanchaoguo0 阅读(5) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 64 下一页