经过Python在Linux子命令行(子程序)加参数运行

使用Python交互模块-----pexpectweb 安装pexpect模块:pip install pexpect 代码中导入: import pexpectssh 方法1:run() pexpect.run(command,timeout=-1,…) run运行命令,返回结果,与os.syste相似xss 方法2:spawn() ----------------加参数主要用到这个方法 chi
相关文章
相关标签/搜索