Commit 14265c4a by BellCodeEditor

save project

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