我正在尝试创建一个循环来提示帐户持有人在Python中获取信息。但是,如果尝试登录的帐户持有者输入了错误的信息,则它可以正常工作 - 系统会显示一条消息,要求用户重新输入信息。但是当用户输入正确的unfo时,它仍然要求重新输入帐号。有人帮我指出正确的方向以使其正常工作吗?以下是我在下面写的代码:
#Account login.
#Allows user to enter account info
print("\tWelcome to the 'Your account login'\n")
print("Please login using the form below.")
#If user's info is not correct, ask for repeat attempt
account_info = input("What is your account number?\n")
while account_info != int(input(123456789)):
account_info = input("Please re-enter your account number :\n")
print("Here is your information")