直接运行Python 2017-02-25 本文已影响0人 XYZ7 在py文件加入注释 #!/usr/bin/env python3 print('hello, world') 2.通过命令给py文件执行权限 $ chmod a+x hello.py