re.split() 方法可以同時使用多個分隔字元分解字串,例如:. import re ... print(re.sub('book', 'python', str1, flags = re.IGNORECASE)) #python ...
確定! 回上一頁