[root@oracledb python3]# cat /home/b.sh
echo "hello"


>>> import subprocess
>>>
>>> subprocess.call('sh /home/b.sh', shell=True)
hello
0

相关文章:

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