正则表达式获取图片后缀

suffixRe = r"[^\.]+$"
suffix = re.compile(suffixRe).findall(src)[0]
print(suffix)