Commit 9d1b7151 by BellCodeEditor

save project

parent d35f28ec
Showing with 15 additions and 10 deletions
...@@ -16,15 +16,20 @@ ...@@ -16,15 +16,20 @@
username = "李易峰" username = "李易峰"
userpassword = "吴亦凡" userpassword = "吴亦凡"
while True: while True:
name = input("请输入用户名:") if i = 3:
password = input("请输入密码:") name = input("请输入用户名:")
if name == username and password == userpassword: password = input("请输入密码:")
print("登录成功!") if name == username and password == userpassword:
break print("登录成功!")
if name != username: if - = 1
print("用户名错误!请重新输入") break
continue if name != username:
if password != userpassword: print("用户名错误!请重新输入")
print("密码错误!重述") continue
if password != userpassword:
print("密码错误!重述")
if i = 0:
print("滚")
exit()
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