Linux中python第一个脚本 1.vim test1.py 2. test1.py 没有执行权限,需要先赋予执行权限: chmod +x test1.py 3.运行程序 ./test1.py 或 python test1.py