正则表达式获取图片后缀 Posted on 8 9 月, 2022 suffixRe = r"[^\.]+$" suffix = re.compile(suffixRe).findall(src)[0] print(suffix)