题解 | #统计人次#
统计人次
https://www.nowcoder.com/practice/325adc585eeb4791a5d92389e5b6c6cc
names = list(input().split()) print(names.count('NiuNiu')) print(names.index('NiuNiu'))
names.count
names.index
统计人次
https://www.nowcoder.com/practice/325adc585eeb4791a5d92389e5b6c6cc
names = list(input().split()) print(names.count('NiuNiu')) print(names.index('NiuNiu'))
names.count
names.index
相关推荐