我才得到答案。通过输入“ py -h”或“ py –help”,我得到了帮助消息:
C:Usersadmin>py -hPython Launcher for Windows Version 3.7.1150.1013usage:py [launcher-args] [python-args] script [script-args]Launcher arguments:-2 : Launch the latest Python 2.x version-3 : Launch the latest Python 3.x version-X.Y : Launch the specified Python version The above all default to 64 bit if a matching 64 bit python is present.-X.Y-32: Launch the specified 32bit Python version-X-32 : Launch the latest 32bit Python X version-X.Y-64: Launch the specified 64bit Python version-X-64 : Launch the latest 64bit Python X version-0 --list : List the available pythons-0p --list-paths : List with paths
告诉我“ -0”(零,而不是字母“ O”)列出了可用的python:
C:Usersadmin>py -0Installed Pythons found by py Launcher for Windows -3.7-64 * -3.7-32 -2.7-64 -2.7-32
而“ -0p”不仅列出版本,而且列出路径:
C:Usersadmin>py -0pInstalled Pythons found by py Launcher for Windows -3.7-64 C:UsersadminAppDataLocalProgramsPythonPython37python.exe * -3.7-32 C:UsersadminAppDataLocalProgramsPythonPython37-32python.exe -2.7-64 C:Python27_64python.exe -2.7-32 C:Python27_32python.exe



