Commit 975284bf by BellCodeEditor

save project

parent ea6de972
Showing with 3 additions and 4 deletions
...@@ -8,9 +8,12 @@ while True: ...@@ -8,9 +8,12 @@ while True:
if password != userpassword: if password != userpassword:
print("密码错了") print("密码错了")
i-=1 i-=1
print("还有"+str(i)+"次")
continue continue
if name != username: if name != username:
print("名字错了") print("名字错了")
print("还有"+str(i)+"次")
continue continue
i-=1 i-=1
if name == username and password == userpassword: if name == username and password == userpassword:
......
i=3
whil
name=input("狗比王翔宇")
\ 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