Another_Mark = raw_input("would you like to enter another mark? (y/n)")
while Another_Mark.lower() != "n" or Another_Mark.lower() != "y":
Another_Mark = raw_input("Do you want to input another mark? Please put either 'y' or 'n' this time")
if Another_Mark == "y":
print "blah"
if Another_Mark == "n":
print "Blue"
这不是我使用的实际代码,除了第一三行。无论如何,我的问题是为什么当我输入值'y'或'n'时,while循环会继续重复,当它再次询问你是否想在第三行输入另一个标记时。我陷入了无限重复的循环。当 Another_Mark 的值更改为“y”或“n”时,不应重复