Commit 2350cd71 by BellCodeEditor

auto save

parent 289f1f34
Showing with 19 additions and 23 deletions
a=10
username="abcd"
userpassword="147258"
while True:
if a>0:
name=input("请输入你的账号")
password=input("请输入你的密码")
a-=1
if name==username and password==userpassword:
print("登录成功")
break
if name!=username:
print("账号错误")
print("温馨提醒,你还有"+str(a)+"次")
continue
if password!=userpassword:
print("密码错误")
print("温馨提醒,你还有"+str(a)+"次")
else:
print("十次已用完,已锁定!")
exit()
print("欢迎")
\ No newline at end of file
# username="abcd"
# while True:
# name=input("请输入账号")
# password=input("请输入密码")
# if name==username and password==userpassword:
# print("登陆成功")
# break
# if name!=
# if
# print("欢迎")
# num=0
# while num<20:
# if num%2==1:
# print(num)
# num+=1
\ 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