Commit 97a092bf by BellCodeEditor

save project

parent afbd1ff7
Showing with 7 additions and 8 deletions
...@@ -2,24 +2,23 @@ username = "1" ...@@ -2,24 +2,23 @@ username = "1"
userpassword = "2" userpassword = "2"
i=3 i=3
while True: while True:
if i>0 if i>0:
name = input("请输入用户名:") name = input("请输入用户名:")
password = input("请输入密码:") password = input("请输入密码:")
if name == username and password == userpassword:
i-=1 i-=1
if name == username and password == userpassword:
print("登录成功!") print("登录成功!")
break break
if name != username: if name != username:
print("密码错误!") print("用户名错误!")
continne continne
if password != userpassword: if password != userpassword:
print("用户名错误!") print("密码错误!")
i-=1 i-=1
continne print("你有"+str(i)+"次")
if i==0: else:
print("错了,账号冻了,拿上身份证来我死解封") print("错了,账号冻了,拿上身份证来我死解封")
exid() exid
print("欢迎来到贝尔编程!") 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