Commit 408fc6cf by BellCodeEditor

save project

parent 999054ba
Showing with 6 additions and 4 deletions
......@@ -5,12 +5,13 @@ userpassword = "123456" # 保存在服务器数据库中的# 请用input()实
while True:
name=input("请输入用户名")
password=input("请输入密码:")
if username==name and username==password:
print('登录成功')
break
elif username!=name:
print('用户名错误,登录失败')
continue
else:
print('登录失败')
print('密码错误,登录失败')
continue
# 如果用户输入的账号、密码正确,提示登陆成
\ No newline at end of file
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