Python---統計字符串中各字符的個數

#統計字符個數 str=input("請輸入一串字符:") resoult={} for i in str: resoult[i]=str.count(i) print(resoult) 不得不驚歎Python內置函數的強大python
相關文章
相關標籤/搜索