我希望我的if函数能够在python落在else之后继续重复。我怎么做?我已经添加了一个我的代码的例子。我如何不断重复“如果”?
if selection1 == "C":
print("Ok")
elif selection1 == "E":
print("Ok")
elif selection1 == "Q":
print("Ok...") quit()
else:
selection1 == print("The character you entered has not been recognised, please try again.")
a while loop :) –
http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/loops.html,http://www.tutorialspoint.com/python/python_loops.htm - 也有漂亮的图片 – user2864740