list1 = [random.randint(0, 100) for i in range(15)]
print(list1)
input_num = int(input('请输入一个数字:'))
num_index = -1
if input_num in list1:
for i in range(list1.count(input_num)):
num_index = list1.index(input_num, num_index+1)
print(f'{input_num}出现的索引位置是:{num_index}')
else:
print(f'数字{input_num}不在列表中')