Commit 251fd0af by BellCodeEditor

save project

parent cad742a6
Showing with 6 additions and 10 deletions
username = "hehongkai" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "wx749266" # 保存在服务器数据库中的用户密码(正确的密码)
# 请用input()实现用户输入账号、密码的功能
a=input("账号")
b=input("密码")
while True:
a=input("账号")
b=input("密码")
if a == username:
if b == userpassword:
print("登录成功!")
break
else:
print("登录失败!")
print("重新输入")
a=input("账号")
b=input("密码")
if a!=username:
print("用户名错误")
if 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