Commit d4558cbc by BellCodeEditor

save project

parent 5d13e571
Showing with 12 additions and 10 deletions
...@@ -2,14 +2,15 @@ aname = "python" ...@@ -2,14 +2,15 @@ aname = "python"
apassword = "123456" apassword = "123456"
i=1 i=1
while True: while True:
name = input("请输入用户名:") if i>0
passs = input("请输入密码:") name = input("请输入用户名:")
if name == aname and passs == apassword: passs = input("请输入密码:")
print("登录成功!") if name == aname and passs == apassword:
break print("登录成功!")
if name!=aname or passs!=apassword: break
print("这个账号不是你的吧!") if name!=aname or passs!=apassword:
i-=1 print("这个账号不是你的吧!")
else: i-=1
print("这个账号不是你的还来登录,有病!") else:
print("这个账号不是你的还来登录,有病!")
print("欢迎来到贝尔编程!") 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