python里launcher有什么用

发布时间:2020-11-23 10:46:00 作者:小新
来源:亿速云 阅读:950

这篇文章将为大家详细讲解有关python里launcher有什么用,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

什么是 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 启动器是一个实用组件,可帮助您定位和执行不同的 Python 版本。它允许脚本(或命令行)为特定的 Python 版本指示首选项,定位并执行该版本。

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

Python Launcher 的位置

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

python里launcher有什么用

图中标注的小字告诉我们,安装 Python Launcher 后可以通过全局命令 ‘py’ 来更方便地启动 Python。不勾选 launcher 项时,系统则不会安装 Python Launcher (但默认情况下该工具都是被勾选的)。

关于python里launcher有什么用就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。

推荐阅读:
  1. html里table有什么用
  2. python里append()方法有什么用

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

python launcher

上一篇:学python容易找工作吗

下一篇:用python的原因有哪些

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》