Commit 14265c4a by BellCodeEditor

save project

parent 0f64ff00
Showing with 13 additions and 7 deletions
usename="python"
usepassword=12345
i=3
while True:
a=input("请输入账号:")
a1=input("请输入密码:")
a1=int(a1)
i=3
while True:
if i<=0:
i=i-1
if a==usename and a1==usepassword:
print("登录成功")
break
else:
i-=1
if i==0:
exit()
if a!=usename:
print("用户名错误")
continue
else:
print("密码错误")
\ No newline at end of file
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