萌新求教,想知道这个程序为什么这么运行
import randomsecert = random.randint(1,100)
guess = 0
tries = 0
print("AHOY!I AM THE DREAD PIRATE ROBERS,AND I HAVW A SECRET!")
print("IT IS A NUMBER FROM 1 TO 99. I WILL GIVE YOU 6 TRIES.")
while guess!= secert and tries < 6:
guess = int(input("WHAT IS YER GUESS?"))
if guess<66:
print("TOO LAW")
elif guess>66:
print("TOO HIGH")
tries = tries + 1
if guess==66:
print("YOU FOUND MY SECERT!")
else:
print("NO MORE GUESSES! BETTER LUCK NEXT TIME, MATEY!")
print("THE SECERT NUMBER WAS",66)