Commit efe64127 by BellCodeEditor

save project

parent 5bd3489f
Showing with 19 additions and 12 deletions
i=5
username = "python"
userpassword = "123456"
while True:
name=input("请输入用户名")
password = input("请输入密码")
if name==username and password==userpassword:
print("登陆成功")
break
if name!=username:
print("登陆失败,用户名错误!臭蟑螂")
continue
if password!=userpassword:
print("登陆失败,密码错误!臭蟑螂")
continue
\ No newline at end of file
if i>0:
name=input("请输入用户名")
password = input("请输入密码")
i=i-1
if name==username and password==userpassword:
print("登陆成功")
break
if name!=username:
print("登陆失败,用户名错误!臭蟑螂")
continue
if password!=userpassword:
print("登陆失败,密码错误!臭蟑螂")
continue
else:
print("你这个肮脏的黑客,我已经黑进了你的电脑,去死吧!")
exit()
print("小B玩意还挺牛逼,让你进来了。")
\ 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