Commit 82e421ee by BellCodeEditor

auto save

parent 98373ce9
Showing with 10 additions and 6 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码) userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
n=input("请输入账号名称") while True:
m=input("请输入账号密码") n=input("请输入账号名称")
while n!=username and m!=username: m=input("请输入账号密码")
if n==username and m==userpassword: if n==username and m==userpassword:
print("登陆成功") print("登陆成功")
else: break
print("登陆失败") elif n != username:
\ No newline at end of file print("用户名称错误")
elif m != userpassword:
print("用户密码错误")
\ No newline at end of file
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