例子:
choice(['Aa', 'Bb', 'Cc')
应该打印:
Enter choice: Aa
Enter choice: Cc
Enter choice: Aa
Enter choice: Aa
Enter choice: Bb
Enter choice: Cc
Enter choice: Aa
Enter choice:
There are 4 choices for Aa.
There are 2 choices for Cc.
There are 1 choices for Bb.
There is 1 choice for Unknown.
请注意,它会一直询问您的选择是什么,直到出现空白为止。
至今:
默认选择(n):
while True:
vote = input('Enter choice: ')