Commit feb53c1a by BellCodeEditor

save project

parent 1db5edde
Showing with 22 additions and 1 deletions
i=3
username="python"
userpasswork="121200"
while True:
if i>0:
name=input("请输入用户名")
passwork=input("请输密码")
i-=1
if name==username and passwork ==userpasswork:
print("登陆成功")
break
if name !=username:
print("用户名错误,重新输入")
print("温馨提示:你还有"+str(i)+"次机会")
continue
if passwork !=usernpasswork:
print("密码错误,重新输入")
print("温馨提示:你还有"+str(i)+"次机会")
else
print("你没了")
exit()
\ 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