什么是PythonLauncher?
以下是官方文档给出的解释
Newinversion3.3.
ThePythonlauncherforWindowsisautilitywhichaidsinlocatingandexecutingofdifferentPythonversions.It
allowsscripts(orthecommand-line)toindicateapreferenceforaspecificPythonversion,andwilllocateand
executethatversion.
UnlikethePATHvariable,thelauncherwillcorrectlyselectthemostappropriateversionofPython.Itwillprefer
per-userinstallationsoversystem-wideones,andordersbylanguageversionratherthanusingthemostrecently
installedversion.
翻译:
3.3版本新增功能
适用于Windows的Python启动器是一个实用组件,可帮助您定位和执行不同的Python版本。它允许脚本(或命令行)为特定的Python版本指示首选项,定位并执行该版本。
不同于PATH变量,PythonLauncher将正确选择最合适的Python版本。它更喜欢每个用户在系统范围内的安装,并且运行指定的Python版本,而不是使用最近安装的版本。
PythonLauncher的位置
在安装Python3.3以上版本的Python时,我们可以看到下图中的一个选项,当我们勾选时,系统便会帮助我们自动安装PythonLauncher。
图中标注的小字告诉我们,安装PythonLauncher后可以通过全局命令‘py’来更方便地启动Python。不勾选launcher项时,系统则不会安装PythonLauncher(但默认情况下该工具都是被勾选的)。
以上内容为大家介绍了python培训之launcher是什么,希望对大家有所帮助,如果想要了解更多Python相关知识,请关注我们