常見的python面試題

一、用python實現,查找字符串中的重複字母的個數 def chongfu_str(string): count = {} for i in set(string): count[i] = string.count(i) return count string = "aadserbddfgshgas" print(chongf
相關文章
相關標籤/搜索