strip(),replace()和re.sub()用法

strip(),replace()和re.sub()用法 語法 str.replace(old, new[, max]) 參數 old -- 將被替換的子字符串。 new -- 新字符串,用於替換old子字符串。 max -- 可選字符串, 替換不超過 max 次   re.sub(pattern, repl, string, count=0, flags=0) pattern:表示正則表達式中的
相關文章
相關標籤/搜索