我可能在这里忽略了一些非常简单的内容,但是由于某些原因,当我运行此代码块时,它只会询问menu_selection var,而不会询问任何if情况的输入
import user
print("1.) Login")
print("2.) Register")
print("3.) Exit")
menu_selection = input("Selection:")
if menu_selection == 1:
username = input("Enter username:")
password = input("Enter password:")
login_user = username, password
elif menu_selection == 2:
username = input("Enter username:")
password = input("Enter password:")
new_user = user.User(username, password)
elif menu_selection == 3:
exit("PyMess closed.")