这是我的一段代码:
choice = ""
while choice != "1" and choice != "2" and choice != "3":
choice = raw_input("pick 1, 2 or 3")
if choice == "1":
print "1 it is!"
elif choice == "2":
print "2 it is!"
elif choice == "3":
print "3 it is!"
else:
print "You should choose 1, 2 or 3"
虽然它有效,但我觉得它真的很笨拙,特别是 while 子句。如果我有更多可接受的选择怎么办?有没有更好的方法来制定条款?