交互SSH

又一个交互SSH

#coding=UTF-8 __author__='dj' importpexpect PROMPT=['#','>>>','>','\$'] defsend_command(child,cmd): child.sendline(cmd) child.expect(PROMPT) print(c...

刘德胜 2019-09-01 446次浏览