Commit 0f3ad2e0 by BellCodeEditor

save project

parent 63332a6e
Showing with 9 additions and 4 deletions
username = "zxcxcc123" username = 'zxcxcc123'
userpassword="7895959" userpassword='7895959'
while True: while True:
name=input("请输入账号") name=input("请输入账号")
password=input("请输入密码") password=input("请输入密码")
if name==username and password==userpassword: if name==username and password==userpassword:
print("登陆成功") print("你不配")
break break
if name!=username:
print("世界很大")
if password!=userpassword:
print("前进地球")
print("输错了,请你重新在输一次") print("输错了,请你重新在输一次")
# 请用input()实现用户输入账号、密码的功能 # 请用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