Commit 9dfa8258 by BellCodeEditor

auto save

parent 9acdf46f
Showing with 20 additions and 0 deletions
import time
username="xxx"
userpassward="123"
while True:
name=input("请输入您的账号:")
if name != username:
print("不正确")
continue
passward=input("请输入您的密码:")
if name==username and passward==userpassward:
print("登录成功!")
break
elif passward != userpassward:
print("您的密码输入错误,请重新输入!")
print("欢迎来到快乐星球!")
# time.sleep(1)
# while True:
# print("什么是快乐星球?")
# time.sleep(0.1)
\ 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