Linux下创建并执行python脚本
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
Linux下创建并执行python脚本
vim first.py
#! /usr/bin/env python
list = [ 1,2,3,4,5,6,7,9,10,11]
tuple = (1,2,3,4,5,6,7,9,10)
print list
print tuple
执行py脚本
python first.py
或者
chmod u+x first.py
./first.py
环境配置说明:
#!/usr/bin/python
在centos下python的路径
#!/usr/bin/env python
可适配置在所有linux版本下的python路径




A beautiful web dashboard for Linux
最近提交(Master分支:6 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)