Commit 5977343f by BellCodeEditor

save project

parent ba43716d
Showing with 23 additions and 3 deletions
i=5
z="wzy"
q="123456"
while True:
if i>0:
z1=input("用户名")
q1=input("密码")
i=i-1
if z1==z and q1==q:
print("登录成功")
break
elif z1!=z:
print("用户名错误")
print("你还有"+str(i)+"次机会")
else:
q1!=q
print("密码错误")
print("你还有"+str(i)+"次机会")
if i==0:
print("您的五次机会已用完,登录失败")
print("欢迎来到编程世界")
\ 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