Python 字符串匹配、搜索及替换

文章目录 字符串匹配、搜索及替换 字符串开头或结尾匹配 str.startswith() 和 str.endswith() 用 Shell 通配符匹配字符串 fnmatch() 和 fnmatchcase() 字符串匹配和搜索 str.find() 正则表达式及 re 模块 re.match() re.compile() re.findall() re.finditer() 字符串搜索和替换 st
相关文章
相关标签/搜索