Commit e34139ef by BellCodeEditor

save project

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