题解 | 统计人次
my_list = input().split() i = 0 NiuNiu_index =[] for name in my_list: if name == 'NiuNiu': i +=1 NiuNiu_index.append(my_list.index(name)) print(i) print(NiuNiu_index[0])
my_list = input().split() i = 0 NiuNiu_index =[] for name in my_list: if name == 'NiuNiu': i +=1 NiuNiu_index.append(my_list.index(name)) print(i) print(NiuNiu_index[0])
相关推荐