Skip to content

Commit 5e3e7cb

Browse files
authored
py: add Chinese translation (#18362)
1 parent 6c8232f commit 5e3e7cb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

pages.zh/windows/py.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# py
2+
3+
> 用于 Windows 的 Python 启动器,可运行指定的 Python 版本。
4+
> 另见: `python`.
5+
> 更多信息:<https://docs.python.org/using/windows.html#python-launcher-for-windows>.
6+
7+
- 启动一个 REPL(交互式命令行),可以选择使用 `python` 支持的参数(如 `-c``-m` 等):
8+
9+
`py {{python 参数}}`
10+
11+
- 执行指定的 Python 文件:
12+
13+
`py {{路径/到/文件.py}}`
14+
15+
- 运行指定版本的 Python. 若缺少该版本且设置了 `PYLAUNCHER_ALLOW_INSTALL` 环境变量,则通过 Microsoft Store 或 Winget 自动安装:
16+
17+
`py {{-2|-3.7|...}}`
18+
19+
- 列出已安装的 Python 版本:
20+
21+
`py --list`

0 commit comments

Comments
 (0)