python中关于windows文件名非法字符的过滤处理

参考文章:http://www.cppcns.com/jiaoben/python/261979.html

import re

new_filename=re.sub(r'[\/:*?"<>| ]+', "_", old_filename)

 
原文地址:https://www.cnblogs.com/d9394/p/14078135.html