我创建了一个编号为 1-10 的名称列表。我希望用户能够输入一个数字(1-10)来选择一个名字。我有以下代码,但还不能让它工作。我是 python 新手。谢谢您的帮助
def taskFour():
1 == Karratha_Aero
2 == Dampier_Salt
3 == Karratha_Station
4 == Roebourne_Aero
5 == Roebourne
6 == Cossack
7 == Warambie
8 == Pyramid_Station
9 == Eramurra_Pool
10 == Sherlock
print''
print 'Choose a Base Weather Station'
print 'Enter the corresponding station number'
selection = int(raw_input('Enter a number from: 1 to 10'))
if selection == 1:
selectionOne()
elif selection == 2:
selectionTwo()
elif selection == 3:
selectionThree()