Commit ee9e3e73 by BellCodeEditor

save project

parent f7b7c45d
Showing with 8 additions and 7 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "1452" # 保存在服务器数据库中的用户密码(正确的密码) userpassword = "1452" # 保存在服务器数据库中的用户密码(正确的密码)
while True: while True:
a=input("请输入用户名:") a=input("请输入用户名:")
b=input("请输入密码:") b=input("请输入密码:")
if a=="python" and b=="1452" : if a=="python" and b=="1452" :
print("登录成功") print("登录成功")
break break
if a!=username: if a!=username:
print("用户名错误请重新输入") print("用户名错误请重新输入")
if b!=userpassword: if b!=userpassword:
print("密码错误请重新输入") print("密码错误请重新输入")
print("欢迎进入我的世界") 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