python

export PATH=$PATH:/opsware/agent/bin/

 

2种方式运行 python

1. 

$ python test.py

2. 

#!/usr/bin/python 加在文件中

 

$ chmod +x test.py     # 脚本文件添加可执行权限
$ ./test.py


posted @ 2017-10-09 15:13  kakaisgood  阅读(121)  评论(0编辑  收藏  举报