Commit 3d19d8fd by BellCodeEditor

save project

parent b7340a3b
Showing with 16 additions and 10 deletions
username="python" username="python"
userpassword="123456" userpassword="123456"
i=3
while True: while True:
name=input("请输入用户名") if not i==0:
password=input("请输入账号") name=input("请输入用户名")
if username==name and userpassword==password: password=input("请输入账号")
print("密码正确") if username==name and userpassword==password:
break print("密码正确")
elif userpassword!=password: break
print("用密码错误") if userpassword!= password:
else: print("用密码错误")
print("用户名错误") continue
\ No newline at end of file if username!=name:
print("用户名错误")
else:
print("封锁")
exit()
print("欢迎")
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