一、replace()函数1用字符串本身的replace方法: 1 2 3 二、re.sub() ... a = 'hello word' b = a.replace('word','python') print b.
確定! 回上一頁