以下程式碼使用 string.count() 函式查詢字串中所有出現的子字串。 Python. pythonCopy #defining string and substring str1 = "This dress looks good; ...
確定! 回上一頁