Commit eb66a6a3 by BellCodeEditor

save project

parent 499b39ef
Showing with 18 additions and 5 deletions
name="没时间" name="阔绰"
name="没时间" name="阔绰"
password="meishijian" password="阔绰"
while True: while True:
if input("请输入账号:")==name: if input("请输入账号:")==name:
if input("请输入密码:")==password: if input("请输入密码:")==password:
...@@ -8,4 +8,17 @@ while True: ...@@ -8,4 +8,17 @@ while True:
else: else:
print("密码错误!") print("密码错误!")
else: else:
print("账号错误!") print("账号错误!")
\ No newline at end of file
i = 5
elif username!=myusernme:
print("账号错误")
continue
eilf password!=mypassword:
i=i-1
print("密码错误! 输入错误第"+str(times)+"次, 剩余"+str(5-times)+"次")
continue
else:
print("你已输入错误五次,账号已锁定")
exit()
print("欢迎您")
\ 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