摘要:
报错信息: Exception ignored in: <function BufferedFile.__del__ at 0xffff8810f280> Traceback (most recent call last): File "/home/test/.local/lib/python3.9 阅读全文
摘要:
#!/usr/bin/env python2 # -*- coding:utf-8 -*- from telnetlib import Telnet import time host = '192.168.2.1' username = 'root' password = '12345678' fi 阅读全文
摘要:
pip install pexpect #!/usr/bin/env python import pexpect address = '192.168.2.1' userName = 'root' password = '12345678' cmd = 'telnet ' + address pro 阅读全文
摘要:
安装paramiko:pip install paramiko或者使用国内豆瓣的源pip install paramiko -i https://pypi.douban.com/simple/ --trusted-host http://pypi.douban.com #!/usr/bin/env 阅读全文