Python 2 and Python 3 - Running in Command Prompt

后端 未结 2 1933
终归单人心
终归单人心 2020-12-19 12:22

Having various projects in both Python 2 and Python 3 (with both python versions installed), I was looking for a more intuitive way to run scripts via Command Prompt than

2条回答
  •  猫巷女王i
    2020-12-19 13:06

    If Python 2 and 3 are both installed and in the PATH variable, you can do:

    py -2

    or

    py -3

提交回复
热议问题