Commit e34139ef by BellCodeEditor

save project

parent be563b5f
Showing with 6 additions and 7 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) username = "ys" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码) userpassword = "123" # 保存在服务器数据库中的用户密码(正确的密码)
while True: while True:
name = input("输入名字") name = input("输入名字")
password = input("输入密码") password = input("输入密码")
if name == username and password == userpassword: if name == username and password == userpassword:
print("成功") print("成功")
break break
if name != username: elif name != username:
print("请重新输入") print("请重新输入名字")
continue else:
if password != userpassword: print("请重新输入密码")
print("请重新输入")
print("欢迎") 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