在我第三次尝试之后,如果我输入 ak7e15
输出应该是
"The password is correct"
但它是
"The system is disable"
我需要改变什么?
p = input("Enter a password: ")
count=0
while count<2:
if p=="k7e15":
print("The password is correct.")
break
else:
p = input("The password is wrong,please try again:")
count +=1
if count>=2:
print("The system is disable.")