Update cheatsheets

This commit is contained in:
ivuorinen
2025-04-12 00:18:36 +00:00
parent 99092db1f1
commit abc22a98ef
2 changed files with 30 additions and 0 deletions

26
tldr/windows/py Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, windows]
source: https://github.com/tldr-pages/tldr.git
---
# py
> Python Launcher for Windows that runs with specified Python version.
> See also: `python`.
> More information: <https://docs.python.org/3/using/windows.html#python-launcher-for-windows>.
- Start a REPL (interactive shell), optionally with arguments supported by `python` (like `-c`, `-m`, etc.):
`py {{python_arguments}}`
- Execute a specific Python file:
`py {{path/to/file.py}}`
- Run specific Python version. If the version is missing, and `PYLAUNCHER_ALLOW_INSTALL` environment variable is set, auto-install via Microsoft Store or Winget:
`py {{-2|-3.7|...}}`
- List installed Python versions:
`py --list`