Commit f38b5472 by BellCodeEditor

auto save

parent b6bfa880
Showing with 15 additions and 8 deletions
i=3
username="ltg" username="ltg"
userpassword="20131203" userpassword="20131203"
while True: while True:
if i>0:
name=input("请输入用户名") name=input("请输入用户名")
password=input('请输入密码') password=input("请输入密码")
if name==username and password==userpassword: i=i-1
print("登录成功") if name==username and password==userpassword:
break print("登录成功")
elif name!=username: break
print("请重新输入用户名") if name!=username:
else: print("请重新输入用户名")
print("请重新输入密码") print("你还有"+str(i)+"次机会")
continue
if password!=userpassword
print("请重新输入密码")
else:
print("你废了")
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