Commit 3795d7ff by BellCodeEditor

save project

parent d607dfc2
Showing with 2 additions and 30 deletions
username = "0" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "0" # 保存在服务器数据库中的用户密码(正确的密码)
k=3
# 请用input()实现用户输入账号、密码的功能
while True:
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()
# 如果用户输入的账号、密码正确,提示登陆成功
\ No newline at end of file
print("holl world")
\ 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