Commit 5bf6ed5b by BellCodeEditor

save project

parent 50ca62d3
Showing with 8 additions and 6 deletions
username = "于轼" # 保存在服务器数据库中的用户账号(正确的账号) username = "于轼" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "000000" # 保存在服务器数据库中的用户密码(正确的密码) userpassword = "000000" # 保存在服务器数据库中的用户密码(正确的密码)
zhanghao = input("请输入账号") while True:
# 请用input()实现用户输入账号、密码的功能 zhanghao = input("请输入账号")
mima = input("请输入密码") # 请用input()实现用户输入账号、密码的功能
if zhanghao == username and mima == userpassword: mima = input("请输入密码")
if zhanghao == username and mima == userpassword:
print("账号密码输入正确,登录成功") print("账号密码输入正确,登录成功")
break
# else:
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