会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Guanjie Sun
博客园
首页
新随笔
联系
订阅
管理
2025年12月6日
Scoop 软件清单与配置信息
摘要: Scoop 软件清单与配置信息 { "config": { "scoop_repo": "https://github.com/ScoopInstaller/Scoop", "scoop_branch": "master", "cat_style": "full" }, "apps": [ { "I
阅读全文
posted @ 2025-12-06 20:41 Guanjie255
阅读(35)
评论(0)
推荐(0)
2025年11月2日
Windows Terminal 配置文件
摘要: { "$help": "https://aka.ms/terminal-documentation", "$schema": "https://aka.ms/terminal-profiles-schema", "actions": [], "copyFormatting": "none", "co
阅读全文
posted @ 2025-11-02 18:04 Guanjie255
阅读(28)
评论(0)
推荐(0)
2025年9月11日
RST报文段的意义
摘要: 客户端代码,服务端代码如下 客户端代码 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
阅读(16)
评论(0)
推荐(0)
2025年9月10日
网络通信中的死锁
摘要: 客户端代码 点击查看代码 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
阅读(30)
评论(0)
推荐(0)
2025年8月24日
tmux 配置文件
摘要: # 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
阅读(12)
评论(0)
推荐(0)
2025年8月14日
Python多线程并发模型在处理CPU密集任务时退化为多线程串行执行
摘要: 原因 由于GIL的存在,同一时刻只有一个线程的字节码可以被Python解释器执行, 因此无论CPU有多个核心,程序执行的是CPU密集任务还是I/O密集型任务,多个线程也无法并行执行。 线程被I/O阻塞的时候会释放GIL,因此多线程并发执行I/O密集型任务的时候,并发度尚可。 多线程执行纯CPU任务的
阅读全文
posted @ 2025-08-14 23:22 Guanjie255
阅读(21)
评论(0)
推荐(0)
2024年9月4日
使用Python模拟TCP/IP协议栈
摘要: 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
阅读(129)
评论(0)
推荐(0)
2024年8月24日
DBSCAN 之 Python 实现(附带数据集)
摘要: 一、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
阅读(391)
评论(0)
推荐(0)
2024年8月9日
PyCharm专业版关闭Scientific Mode或者禁止"在工具栏窗口中显示图片(Show Plots in Tool Window)"
摘要: 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
阅读(1617)
评论(0)
推荐(0)
2023年11月27日
Python实现完全二叉树
摘要: 给定一个元素序列(如列表),递归的创建一颗完全二叉树 完整代码如下 #! /usr/bin/env python3 class TreeNode: """ Node of complete tree""" def __init__(self, data=0): self.data = data se
阅读全文
posted @ 2023-11-27 22:28 Guanjie255
阅读(105)
评论(0)
推荐(0)
下一页
公告