Commit 8ccc8912 by BellCodeEditor

save project

parent 7e061dc2
Showing with 4 additions and 4 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" userpassword = "123456"
username=input("请输入帐号")
userpassword=input("请输入密码")
while True: while True:
usersname=input("请输入帐号")
userspassword=input("请输入密码")
# 保存在服务器数据库中的用户密码(正确的密码) # 保存在服务器数据库中的用户密码(正确的密码)
if username==usersname and userpassword==userspassword: if username==usersname and userpassword==userspassword:
print("登录成功") print("登录成功")
break break
if name!=username: if username!=usersname:
print("帐号错误,请重新输入") print("帐号错误,请重新输入")
else: 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