Python 字符串replace() 方法 ... txt = "I like bananas" x = txt.replace("bananas", "apples") print(x) ... string.replace(oldvalue, newvalue, count) ...
確定! 回上一頁