Skip to content

Commit 4325f72

Browse files
committed
update: rename post, etc
1 parent 8b09321 commit 4325f72

File tree

5 files changed

+42
-2
lines changed

5 files changed

+42
-2
lines changed

content/posts/2025-09-22_python-uv.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,18 @@ uv run main.py
215215
uv init --package example-pkg
216216
```
217217

218+
如果要放到 `package/` 目录下面使用
219+
220+
```bash
221+
uv init --package packages/example-pkg
222+
```
223+
224+
或者
225+
226+
```bash
227+
uv init packages/exmaple-pkg
228+
```
229+
218230
`main.py` 被替换为 `src/` 目录, 该目录中会包含一个模块目录, 以及一个 `__init__.py` 文件.
219231

220232
Build system 被定义了, 因此该项目会被安装到环境中, `pyproject.toml` 类似下面这样:

content/posts/2025-10-03_python-pathlib.md renamed to content/posts/2025-10-03_python-stl-pathlib.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
+++
2-
date = '2025-10-01T8:00:00+08:00'
2+
date = '2025-10-03T8:00:00+08:00'
33
draft = false
4-
title = 'Python Standrad Library - pathlib'
4+
title = 'Python Standrad Library - File and Directory Access - pathlib'
55
tags = ['Python']
66
+++
77

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
+++
2+
date = '2025-10-11T8:00:00+08:00'
3+
draft = false
4+
title = 'Fastapi CORS'
5+
tags = ['Fastapi']
6+
+++
7+
8+
CORS 或 ["Corss-Origin Resource Sharing"](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) 即“跨域资源共享”,指的当前端在浏览器中运行的 JavaScript 代码与后端进行通信,而后端与前端“源”不同的情况。
9+
10+
### Origin 源
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
+++
2+
date = '2025-10-30T8:00:00+08:00'
3+
draft = false
4+
title = 'Python Standrad Library - Python Runtime Services - sys'
5+
tags = ['Python']
6+
+++
7+
8+
# sys - System-specific pararmeters and functions
9+
10+
该模块提供解释器使用或报错的变量的访问,以及一些和解释器强互动的函数。

content/posts/2026-python-eafp.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
+++
2+
date = '2025-10-31T8:00:00+08:00'
3+
draft = true
4+
title = 'Python EAFP vs LBYL'
5+
tags = ['Python']
6+
+++
7+
8+
https://realpython.com/python-lbyl-vs-eafp/

0 commit comments

Comments
 (0)