liyanbin

python调用shell脚本

# coding=utf-8   //设置文本格式
import os            //导入os方法
print(\'hello\')
n=os.system(\'/home/csliyb/kjqy_xcy/bdse-tour-dp-2.1/bin/test.sh\') //调用shell脚本
print \'执行完毕\'

发表于 2017-05-03 16:25  在路上------  阅读(15244)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2021-06-24
  • 2021-08-23
  • 2021-06-14
  • 2021-07-22
  • 2021-11-05
  • 2021-11-18
  • 2021-10-02
  • 2022-12-23
猜你喜欢
  • 2021-10-05
  • 2021-11-20
  • 2021-05-28
  • 2021-11-20
  • 2021-11-20
  • 2021-10-18
  • 2021-11-06
相关资源
相似解决方案