题解 | #单词识别#Python两行

单词识别

https://www.nowcoder.com/practice/16f59b169d904f8898d70d81d4a140a0

from collections import Counter
for s, count in sorted(Counter(input().strip('.').lower().split()).items()): print(s + ':' + str(count))

全部评论

相关推荐

评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务