Commit c2dd4bc6 by BellCodeEditor

save project

parent 4e09cafc
Showing with 5 additions and 1 deletions
......@@ -9,6 +9,7 @@ userpassword = "cao08" # 保存在服务器数据库中的用户密码(正
# 如果用户输入的账号、密码正确,提示登陆成功
while True:
os.system("cls")
userinputname = input("请输入用户名")
userinputpassword = input('请输入密码')
if userinputname == username and userinputpassword == userpassword:
......@@ -20,7 +21,10 @@ while True:
print("用户" + username + "登录成功")
break
elif userinputname != username:
print("用户名登录错误,请重新输入哦!煞笔")
else:
print("用户名或密码登录错误,请重新输入哦!煞笔")
print("密码登录错误,请重新输入哦!煞笔")
print("欢迎来到" + username + "的炒鸡煞笔的吃粪世界")
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