摘要: Scoop 软件清单与配置信息 { "config": { "scoop_repo": "https://github.com/ScoopInstaller/Scoop", "scoop_branch": "master", "cat_style": "full" }, "apps": [ { "I 阅读全文
posted @ 2025-12-06 20:41 Guanjie255 阅读(7) 评论(0) 推荐(0)
摘要: { "$help": "https://aka.ms/terminal-documentation", "$schema": "https://aka.ms/terminal-profiles-schema", "actions": [], "copyFormatting": "none", "co 阅读全文
posted @ 2025-11-02 18:04 Guanjie255 阅读(8) 评论(0) 推荐(0)
摘要: 客户端代码,服务端代码如下 客户端代码 import socket SERVER_ADDR = '127.0.0.1' PORT = 18000 CHUNK_SIZE = 1024 * 4 def main(): """ echo 客户端: 基于 AF_INET domain and TCP typ 阅读全文
posted @ 2025-09-11 04:33 Guanjie255 阅读(9) 评论(0) 推荐(0)
摘要: 客户端代码 点击查看代码 import socket from pathlib import Path SERVER_ADDRESS = Path("/tmp/uds_socket") CHUNK_SIZE = 1024 def main(): # Create Unix Domain Socket 阅读全文
posted @ 2025-09-10 18:28 Guanjie255 阅读(15) 评论(0) 推荐(0)
摘要: # New window starts in the same directory as the current pane bind-key c new-window -c "#{pane_current_path}" # Split window horizontally, keep curren 阅读全文
posted @ 2025-08-24 23:33 Guanjie255 阅读(7) 评论(0) 推荐(0)
摘要: 原因 由于GIL的存在,同一时刻只有一个线程的字节码可以被Python解释器执行, 因此无论CPU有多个核心,程序执行的是CPU密集任务还是I/O密集型任务,多个线程也无法并行执行。 线程被I/O阻塞的时候会释放GIL,因此多线程并发执行I/O密集型任务的时候,并发度尚可。 多线程执行纯CPU任务的 阅读全文
posted @ 2025-08-14 23:22 Guanjie255 阅读(10) 评论(0) 推荐(0)
摘要: 1. 代码如下 import random class ApplicationLayer: def send_data(self, data): print(f"Application Layer: Sending data: {data}") return data def receive_dat 阅读全文
posted @ 2024-09-04 19:16 Guanjie255 阅读(105) 评论(0) 推荐(0)
摘要: 一、yt-dlp is a fork of youtube-dl 二、查看视频信息(前提保证Windows上有Clash for Windows且Clash for Windows打开了TUN模式) 需要关闭firefox,firefox可以替换为chrome或者edge,确保在浏览器上登陆过you 阅读全文
posted @ 2024-09-02 16:38 Guanjie255 阅读(1702) 评论(0) 推荐(1)
摘要: 一、DBSCAN介绍 DBSCAN算法维基百科简介(https://en.wikipedia.org/wiki/DBSCAN) DBSCAN算法原始论文(https://dl.acm.org/doi/10.5555/3001460.3001507) 二、python代码 import numpy a 阅读全文
posted @ 2024-08-24 20:47 Guanjie255 阅读(347) 评论(0) 推荐(0)
摘要: Pycharm Professional 2024.1.5 新版Pycharm Professional已经没有Scientific Mode了,变成了Python Plots 关闭步骤 Settings -> Tools -> Python Plots -> 取消勾选Show Plots in T 阅读全文
posted @ 2024-08-09 08:42 Guanjie255 阅读(1355) 评论(0) 推荐(0)