Commit 3d19d8fd by BellCodeEditor

save project

parent b7340a3b
Showing with 9 additions and 2 deletions
username="python" username="python"
userpassword="123456" userpassword="123456"
i=3
while True: while True:
if not i==0:
name=input("请输入用户名") name=input("请输入用户名")
password=input("请输入账号") password=input("请输入账号")
if username==name and userpassword==password: if username==name and userpassword==password:
print("密码正确") print("密码正确")
break break
elif userpassword!=password: if userpassword!= password:
print("用密码错误") print("用密码错误")
else: continue
if username!=name:
print("用户名错误") 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