Commit 4c391592 by BellCodeEditor

save project

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