Commit 3d19d8fd by BellCodeEditor

save project

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