Commit 17ef381d authored by ibuler's avatar ibuler

改名,修改bug

parent ac875d39
...@@ -222,7 +222,7 @@ def connect(username, password, host, port): ...@@ -222,7 +222,7 @@ def connect(username, password, host, port):
if __name__ == '__main__': if __name__ == '__main__':
username = os.getlogin() login_name = os.getlogin()
print_prompt() print_prompt()
try: try:
while True: while True:
...@@ -231,7 +231,7 @@ if __name__ == '__main__': ...@@ -231,7 +231,7 @@ if __name__ == '__main__':
except EOFError: except EOFError:
continue continue
if option in ['P', 'p']: if option in ['P', 'p']:
print_user_host(username) print_user_host(login_name)
continue continue
elif option in ['E', 'e']: elif option in ['E', 'e']:
pass pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment