1:先找到你的python目录在terminal下:which python2. 在python脚本最上一行写:#!/usr/local/bin/python --修改为你自己的python目录3.将python脚本文件名修改为.command4,在finder中双击