常见的python面试题

一、用python实现,查找字符串中的重复字母的个数 def chongfu_str(string): count = {} for i in set(string): count[i] = string.count(i) return count string = "aadserbddfgshgas" print(chongf
相关文章
相关标签/搜索