新建文件夹的时候自己输入特殊的字符,windows系统会有以上的提示,我是这么做的:
import re
fileName = re.sub('[\/:*?"<>|]','-',fileName)
没有试过linux系统的,只是自己的方法,也希望能跟你一起找到更好的方法
参考与网上搜索
新建文件夹的时候自己输入特殊的字符,windows系统会有以上的提示,我是这么做的:
import re
fileName = re.sub('[\/:*?"<>|]','-',fileName)
没有试过linux系统的,只是自己的方法,也希望能跟你一起找到更好的方法
参考与网上搜索
转载于:https://www.cnblogs.com/feiyusir/p/7605978.html