Commit d0274eea by BellCodeEditor

save project

parent 7c571cda
Showing with 10 additions and 7 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("请输入密码:")
print("登录成功") if ((a==username) and (b==userpassword)):
else: print("登录成功")
print("登录失败") break
\ No newline at end of file else:
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