Python去除文件名特殊字符

 

a = re.findall(r'[^\*"/:?\\|<>]',str1,re.S)

a = "".join(a)

print(a)

你可能感兴趣的:(爬虫,python)