一、在命令行中
通过py -x
二、在py文件中
头部字段添加
#!python2 或 #!python3
即可调用相应版本解释器
命令行调用python:py helloworld.py
相关文章: