假设文件夹\home\sks\python3_crawl下面有个test.py 文件

打开terminal终端:转到root模式

进入cd /hom/sks/python3_crawl

执行:python2 test.py

Centos7 启动 python脚本

相关文章: