pythonlauncher是干什么用的_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 后可以通過全局命令 ‘py’ 來更方便地啟動 Python。不勾選 launcher 項時,系統則不會安裝 Python Launcher (但默認情況下該工具都是被勾選的)。
總結
以上是生活随笔為你收集整理的pythonlauncher是干什么用的_python里launcher是什么的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python 多层嵌套 json_pyt
- 下一篇: for of 的用法区别_ES6语法:v