Commit efe3d96e by BellCodeEditor

save project

parent 95a0b895
Showing with 3 additions and 3 deletions
se==3 se=3
username = "wx589075" username = "wx589075"
userpassword = "123456" userpassword = "123456"
while True: while True:
if se!= 0 if se!= 0:
name = input("请输入用户名:") name = input("请输入用户名:")
password = input("请输入密码:") password = input("请输入密码:")
if name == username and password == userpassword: if name == username and password == userpassword:
...@@ -11,7 +11,7 @@ while True: ...@@ -11,7 +11,7 @@ while True:
if username!=name: if username!=name:
print("用户名错误!请重新输入") print("用户名错误!请重新输入")
se-=1 se-=1
print(se) print("还剩"+se+"次机会")
continue continue
if userpassword!=password: if userpassword!=password:
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