import re
url = ‘abc.gif’
res = re.search('.*(.GIF$)', url, re.I)
正则表达式,忽略大小写
猜你喜欢
转载自blog.csdn.net/qq_39457091/article/details/82144420
今日推荐
周排行