In your code, you just need to work with the count function to count the number of appearances of a string. >>> 'catdog'.count('cat') ...
確定! 回上一頁