python中关于windows文件名非法字符的过滤处理
参考文章:http://www.cppcns.com/jiaoben/python/261979.html
import re
new_filename=re.sub(r'[\\/:*?"<>|\r\n]+', "_", old_filename)
参考文章:http://www.cppcns.com/jiaoben/python/261979.html
import re
new_filename=re.sub(r'[\\/:*?"<>|\r\n]+', "_", old_filename)