摘要: 今天尝试使用python 的 subprocess 模块 使用类似如下语句: p=subprocess.Popen(['ssh','root@localhost'],stdout=subprocess.PIPE) 按照参数的说明,ssh的输出内容会到 subprocess.PIPE,但是实际执行发现 阅读全文
posted @ 2017-12-29 13:04 张不正 阅读(2129) 评论(1) 推荐(0)
摘要: os.chdir(os.path.abspath(os.path.dirname(sys.argv[0]))) 阅读全文
posted @ 2017-12-29 11:01 张不正 阅读(2539) 评论(0) 推荐(0)
返回顶部