Commit 4fa019d7 by BellCodeEditor

save project

parent 4a7cb6b6
Showing with 14 additions and 0 deletions
username = "python"
userpassword = "123456"
while True:
a = input("请输入用户名:")
b = input("请输入密码:")
if a == username and b == userpassword:
print("登录成功!")
break
else:
if a !=username:
print("账号输入错误")
continue
elif b !=userpassword:
print("密码输入错误")
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 sign in to comment