代码拉取完成,页面将自动刷新
#-*-coding: utf-8 -*-
#/usr/bin/python
import ssh5
def add_member(member_name):
host = raw_input("host: ")
port = raw_input("port: ")
username = raw_input("username: ")
password = raw_input("password: ")
cmd = raw_input("command: ")
dict2 = {"host": host, "username": username, "port": port, "password": password, "cmd": cmd}
ssh5.ssh5(dict2["host"], int(dict2["port"]), dict2["username"], dict2["password"], dict2["cmd"])
dict_count = 0
while True:
dict_count = dict_count + 1
member = "dict" + str(dict_count)
print member
add_member(member)
status = raw_input("type any key for continue, type 'quit' for exit: ")
if status == "quit":
print "Bye..."
break
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。