s = input() sum = 0 ch = '' for i in s: if s.count(i) >= sum: sum = s.count(i) ch = i print(ch) print(sum)
蓝桥杯——单词分析
最新推荐文章于 2024-08-16 16:00:00 发布
s = input() sum = 0 ch = '' for i in s: if s.count(i) >= sum: sum = s.count(i) ch = i print(ch) print(sum)