Commit d0274eea by BellCodeEditor

save project

parent 7c571cda
Showing with 8 additions and 4 deletions
username="pi" username="pi"
userpassword="3.1415926" userpassword="3.1415926"
a=input("请输入账号:") while True:
b=input("请输入密码:") a=input("请输入账号:")
if ((a==username and b==userpassword)): b=input("请输入密码:")
if ((a==username) and (b==userpassword)):
print("登录成功") print("登录成功")
else: break
else:
print("登录失败") print("登录失败")
input("欢迎进入我的世界")
\ 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