知行编程网知行编程网  2022-08-21 13:30 知行编程网 隐藏边栏  8 
文章评分 0 次,平均分 0.0
导语: 本文主要介绍了关于python里launcher是什么的相关知识,包括launcher3,以及7launcher这些编程知识,希望对大家有参考作用。

python中的启动器是什么

什么是 Python Launcher?

以下是官方文档给出的解释

New in version 3.3.
The Python launcher for Windows is a utility which aids in locating and executing of different Python versions. It 
allows scripts (or the command-line) to indicate a preference for a specific Python version, and will locate and 
execute that version.
Unlike the PATH variable, the launcher will correctly select the most appropriate version of Python. It will prefer 
per-user installations over system-wide ones, and orders by language version rather than using the most recently 
installed version.

翻译:

3.3版本新增功能

适用于 Windows 的 Python Launcher 是一个实用程序,可帮助你定位和执行不同的 Python 版本。它允许脚本(或命令行)指示对特定 Python 版本的偏好,定位并执行该版本。

与 PATH 变量不同,Python Launcher 将正确选择最合适的 Python 版本。它更喜欢在每个用户的系统范围内安装,并运行指定的 Python 版本,而不是使用最近安装的版本。


Python Launcher 的位置

在安装 Python 3.3 及以上版本时,我们可以在下图中看到一个选项。勾选后,系统会自动帮我们安装Python Launcher。

python中的启动器是什么

图中标注的小字告诉我们,安装完 Python Launcher 后,通过全局命令 'py' 来启动 Python 会更加方便。当launcher项不勾选时,系统不会安装Python Launcher(但该工具默认勾选)。

本文为原创文章,版权归所有,欢迎分享本文,转载请保留出处!

知行编程网
知行编程网 关注:1    粉丝:1
这个人很懒,什么都没写
扫一扫二维码分享