Skip to content

Commit ecc96a3

Browse files
Create 2026-03-07-python3.14.md
1 parent 3cedd49 commit ecc96a3

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

docs/2026-03-07-python3.14.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# 𝜋thon ⇒ python3.14
2+
3+
> :fontawesome-regular-face-grin: Y.D.X.
4+
>
5+
> :material-clock-edit-outline: 2026年3月7日 10:41:47
6+
7+
`python3.14 -m venv .venv`除了在虚拟环境中创建`python``python3``python3.14`,还会创建`𝜋thon`,其中 𝜋 是 U+1D70B MATHEMATICAL ITALIC SMALL PI,位于 Unicode 的 Mathematical Alphanumeric Symbols 区。
8+
9+
```sh
10+
$ python3.14 -m venv .venv
11+
$ cd .venv/bin
12+
.venv/bin $ lsd --long
13+
.rw-r--r-- 2.1 KB  activate
14+
.rw-r--r-- 930 B  activate.csh
15+
.rw-r--r-- 2.1 KB  activate.fish
16+
.rw-r--r-- 8.8 KB  Activate.ps1
17+
.rwxrwxrwx 232 B  pip
18+
.rwxrwxrwx 232 B  pip3
19+
.rwxrwxrwx 232 B  pip3.14
20+
lrwxrwxrwx 10 B  python ⇒ python3.14
21+
lrwxrwxrwx 10 B  python3 ⇒ python3.14
22+
lrwxrwxrwx 19 B  python3.14 ⇒ /usr/bin/python3.14
23+
lrwxrwxrwx 10 B  𝜋thon ⇒ python3.14
24+
```
25+
26+
注意只有原版 CPython 才会这样。该特性实现于`Lib/.venv/__init__.py`。如果[用 uv 安装 Python 3.14](https://docs.astral.sh/uv/guides/install-python/) 或用 uv 创建虚拟环境,这个 Python 脚本都不会运行,所以不会创建`𝜋thon`
27+
28+
原版 CPython 可以从 [python.org(Windows、macOS)](https://www.python.org/downloads/release/python-3143/ "Python Release Python 3.14.3 | Python.org")[PPA(Ubuntu)](https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa) 安装。
29+
30+
```sh
31+
# Ubuntu 24.04 LTS 可从 PPA 安装
32+
sudo add-apt-repository ppa:deadsnakes/ppa
33+
sudo apt update
34+
sudo apt install python3.14 python3.14-venv
35+
```
36+
37+
:material-eye-arrow-right-outline: [Support `pythonπ` in Python 3.14 venv's · Issue #119535 · python/cpython](https://github.com/python/cpython/issues/119535)
38+
39+
(最初这个彩蛋是`pythonπ`/`python𝜋`,后来才改成`𝜋thon`。)
40+
41+
:material-eye-arrow-right-outline: [OrkoHunter/python-easter-eggs: Curated list of all the easter eggs and hidden jokes in Python](https://github.com/OrkoHunter/python-easter-eggs)

0 commit comments

Comments
 (0)