Commit 5865b462 by BellCodeEditor

save project

parent b79f8be5
Showing with 8 additions and 3 deletions
username = "asdfghjkl" username = "asdfghjkl"
userpassword = "20120501" userpassword = "20120501"
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
elif name != username: if name != username:
print("用户名错误,你个**") print("用户名错误,你个**")
continue continue
else: if password != userpassword:
print("密码错误,你个**") print("密码错误,你个**")
continue 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