示例工程 01-orientation

01-orientation/01-hello-runtime/README.md

markdown · 0.6 KB

# 01 · hello-runtime
 
**演示**:打印 CPython 实现、版本、可执行文件、`sys.path[0]` 与缓存标签。
**运行**:
 
```sh
uv run python examples/01-orientation/01-hello-runtime/hello_runtime.py
```
 
**预期输出**(3.12.9 / macOS arm64,路径随机器变化):
 
```text
implementation: CPython
version: 3.12.9
executable: /Users/…/.venv/bin/python
path0: /Users/…/examples/01-orientation/01-hello-runtime
cache_tag: cpython-312
```
 
**依赖**:仅标准库。
**注意**:`path0` 是脚本所在目录;用 `-m` 运行时它是当前工作目录。