Commit de620162 by BellCodeEditor

save project

parent c9a9e494
Showing with 23 additions and 15 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
username = "0" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "0" # 保存在服务器数据库中的用户密码(正确的密码)
k=3
# 请用input()实现用户输入账号、密码的功能
while True:
name1=input("请输入正确的账号:")
name2=input("请输入正确的密码:")
if name1==username and name2==userpassword :
print("登陆成功!")
print("欢迎来到厕所!!!!!!!!!")
break
if name1!=username :
print("账号错误\nhhh!!!!!\nhhh!!!!!\nhhh!!!!!")
continue
if name2!=userpassword:
print("密码错误\nhhh!!!!\nhhh!!!!\nhhhh!!!!!!")
if k>0 :
name1=input("请输入正确的账号:")
name2=input("请输入正确的密码:")
if name1==username and name2==userpassword :
print("登陆成功!")
print("欢迎来到厕所!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!AWAEWSZDSRFSDDERDSRESRTESTRSTRDSRTDYTFYTFYTRDTRDRDRSRRDTFYFUYUGHKUHUKHUHIYUGUTYDFFCVB VJNHBNMNUHYGYFTFDRYCHGJKUIG HGYUFTFJKGYGVUY GUYGUYFTDDYJUHMHJGI IGYGYIUIGYGIUHIUGIHUG UIGGIGD%FYTGJHBKUHHJGHJGJVBJ BJGBJHGJHVNMBV ")
break
if name1!=username :
print("账号错误\nhhh!!!!!\nhhh!!!!!\nhhh!!!!!")
k=k-1
print("你还有"+str(k)+"次机会")
continue
if name2!=userpassword:
print("密码错误\nhhh!!!!!\nhhh!!!!!\nhhhh!!!!!")
k=k-1
print("你还有"+str(k)+"次机会")
else:
print("三次都输不对!\nhhh!!!!!!\nhhh!!!!!\nhhh!!!!!")
print("弱诶!密码是0!")
exit()
......
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