Commit dcee8e20 by BellCodeEditor

auto save

parent 68ac1c98
Showing with 2 additions and 2 deletions
......@@ -2,7 +2,7 @@ i = 3
username = "python"
userpassword = "123456"
while True:
if i>0
if i>0:
name = input("请输入用户名:")
password = input("请输入密码:")
i = i-1
......@@ -14,7 +14,7 @@ while True:
elif username!=name:
print("用户名输入错误,请重新输入")
print("你还可以尝试"+str(i)+"次")
else userpassword!=password:
else:
print("密码输入错误,请重新输入")
print("你还可以尝试"+str(i)+"次")
else:
......
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