1,获取Python解释器执行命令type -a python3得到结果python3 is /usr/local/bin/python32,Python脚本第一行添加注释 3,cd到Python脚本所在文件夹执行./script.py