Commit 18c257fe by BellCodeEditor

save project

parent 9cfafaa8
Showing with 9 additions and 2 deletions
username ="w" i=3
userpassword ="a" username ="wx993944"
userpassword ="Wxw820328"
while True: while True:
if i>0:
name = input("请输入账号:") name = input("请输入账号:")
password = input("请输入密码:") password = input("请输入密码:")
i-=1
if name == username and password == userpassword: if name == username and password == userpassword:
print("登录成功!") print("登录成功!")
break break
...@@ -11,4 +14,7 @@ while True: ...@@ -11,4 +14,7 @@ while True:
continue continue
if userpassword!=password: if userpassword!=password:
print("屏幕前面的二傻子密码输错了") print("屏幕前面的二傻子密码输错了")
else:
print("屏幕前面的二傻子,你连你自己密码和账号都忘了,你能记住什么呀!你赶紧给爷来爷的办公室取你的身份证")
exit()
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