会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
undefined443
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
58
下一页
2025年3月31日
Python 异常链
摘要: Implicit Chaining 产生原因:处理异常时,except 块中的代码抛出新的异常。 示例代码: try: 1 / 0 # 这里抛出 ZeroDivisionError except ZeroDivisionError: raise ValueError # 这里抛出 ValueErro
阅读全文
posted @ 2025-03-31 14:35 Undefined443
阅读(416)
评论(0)
推荐(0)
2025年3月27日
Ubuntu clang++ 找不到标准库头文件解决
摘要: 系统:Ubuntu 22.04 报错: $ clang++ main.cpp read.cpp:1:10: fatal error: 'fstream' file not found #include <fstream> ^~~~~~~~~ 1 error generated. 错误原因:系统安装了
阅读全文
posted @ 2025-03-27 22:53 Undefined443
阅读(328)
评论(0)
推荐(0)
2025年3月23日
深度学习优化算法
摘要: 指数加权平均 指数加权平均(Exponentially Weighted Averages,EWA) ,也叫做指数移动平均(Exponentially Moving Averages,EMA) 是一种用于平滑时间序列数据的技术,通过对数据点赋予不同的权重来计算平均值,其中最近的数据点被赋予更大的权重
阅读全文
posted @ 2025-03-23 16:22 Undefined443
阅读(21)
评论(0)
推荐(0)
2025年3月15日
git 设置提交前自动动作
摘要: 创建一个 .pre-commit-config.yaml 文件: repos: - repo: https://github.com/psf/black rev: '22.8.0' hooks: - id: black args: - --line-length=120 - repo: https:
阅读全文
posted @ 2025-03-15 07:37 Undefined443
阅读(26)
评论(0)
推荐(0)
2025年3月14日
保留网段
摘要: 根据 RFC 1918 定义,以下网段被保留用于私有网络: A 类私有地址段:10.0.0.0/8(10.0.0.0 到 10.255.255.255) B 类私有地址段:172.16.0.0/12(172.16.0.0 到 172.31.255.255) C 类私有地址段:192.168.0.0/
阅读全文
posted @ 2025-03-14 12:57 Undefined443
阅读(58)
评论(0)
推荐(0)
uv 使用
摘要: astral-sh/uv 安装 macOS brew install uv Linux curl -LsSf https://astral.sh/uv/install.sh | sh 安装命令补全 echo 'eval "$(uv generate-shell-completion bash)"'
阅读全文
posted @ 2025-03-14 04:20 Undefined443
阅读(432)
评论(0)
推荐(0)
2025年3月13日
C 匿名管道通信
摘要: main.c: #include <stdio.h> #include <unistd.h> int main() { int fd[2]; // 创建管道 if (pipe(fd) == -1) { fprintf(stderr, "pipe(fd) failed\n"); return -1;
阅读全文
posted @ 2025-03-13 04:34 Undefined443
阅读(16)
评论(0)
推荐(0)
2025年3月12日
Visual Studio Code 设置编译任务和调试配置
摘要: tasks.json tasks.json 用于设置构建指令。 Python { "version": "2.0.0", "tasks": [ { "label": "main", "type": "shell", "command": "python", "args": [ "main.py",
阅读全文
posted @ 2025-03-12 01:28 Undefined443
阅读(130)
评论(0)
推荐(0)
2025年3月11日
一键卸载所有 pip 包
摘要: pip freeze | cut -d "=" -f 1 | xargs -n 1 pip uninstall -y
阅读全文
posted @ 2025-03-11 23:26 Undefined443
阅读(31)
评论(0)
推荐(0)
2025年3月10日
Not uninstalling xxx at /usr/lib/python3/dist-packages, outside environment /usr 解决
摘要: 在使用 pip 卸载 Python 包时出现如下错误: pip uninstall xkit Found existing installation: xkit 0.0.0 Not uninstalling xkit at /usr/lib/python3/dist-packages, outsid
阅读全文
posted @ 2025-03-10 21:27 Undefined443
阅读(222)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
···
58
下一页
公告