rfind() method: r是reverse,從字串尾段開始搜尋,並傳回第一次出現該. 子字串出現的 ... print(var1.count('Python')) #var1字串出現'Python'的次數.
確定! 回上一頁