for s in strs: count = {} ji = 0 for s1 in s: if s1 not in count: count[s1] = 1 else: count[s1] += 1 for key in count: print(key,count[key]) if count[key]%2 != 0: ji += 1 if ji<=1: print(&#39;Cassidy&#39;) elif ji%2 == 0: print(&#39;Eleanore&#39;) else: print(&#39;Cassidy&#39;) 同9%
点赞 评论

相关推荐

点赞 评论 收藏
分享
点赞 评论 收藏
分享
牛客网
牛客企业服务