Commit 5f9490c2 by BellCodeEditor

save project

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