可选参数 start 和 end 被解释为切片符号。 语法. 以下是 count() 方法的语法- str.count(sub, start = 0,end = len(string)).
確定! 回上一頁