Commit ffe985e4 by BellCodeEditor

save project

parent b8f1d222
Showing with 6 additions and 0 deletions
username = "python"
userpassword = "123456"
times=3
while True:
name = input("请输入用户名:")
password = input("请输入密码:")
if times==1:
print("登录次数用完,大傻逼!")
exit()
if name!=username:
print("用户名错误")
times=times-1
print("登录失败,还剩"+str(int(times))"次!")
continue
if password!=username:
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