Commit 7b3106d2 by BellCodeEditor

save project

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