不管Windows还是Linux,直接:
python3 文件名.py
即可。
注: python2的话就是 python 文件名.py Python环境变量已经配置好。 我用的Linux是CentOS。
注:
python 文件名.py