We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c8232f commit 5e3e7cbCopy full SHA for 5e3e7cb
pages.zh/windows/py.md
@@ -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