.replace(). 看程式碼說故事來著:. str = "Hello Andy". str.replace("Andy", "Lina"). print str. 結果:Hello Lina .format().
確定! 回上一頁