使用break时,我试图完全摆脱循环并继续执行代码正文。
对于x范围为(26):
cipher = ''
decrypt(sentence, x)
list = cipher.lower().split()
for item in list:
if item in words:
print("This word was found: " + item, "\n")
print(cipher, "\n")
answer = input("Is this the correct message? \n")
if answer == "yes":
print("Encryption solved!")
main()
break
elif answer == "no":
continue
else:
break
else:
continue