str.replace('Hello', 'Hi') 將用 Hi 替換字串中所有 Hello 的例項。如果你有一個字串 Hello World ,並對其執行replace 函式,執行後會變成 Hi World 。
確定! 回上一頁