立即学习:https://edu.csdn.net/course/play/6861/326747?utm_source=blogtoedu
import re
查:findall(pattern, string, flags=0)
替:sub(pattern, repl, string, count=0, flags=0) count=0表示没有任何限制,全部替换
割:split(pattern, string, maxsplit=0, flags=0)
立即学习:https://edu.csdn.net/course/play/6861/326747?utm_source=blogtoedu
import re
查:findall(pattern, string, flags=0)
替:sub(pattern, repl, string, count=0, flags=0) count=0表示没有任何限制,全部替换
割:split(pattern, string, maxsplit=0, flags=0)