📜  如何将非法字符添加到路径python代码示例

📅  最后修改于: 2022-03-11 14:45:33.459000             🧑  作者: Mango

代码示例1
invalid = '<>:"/\|?* '

for char in invalid:
    filename = filename.replace(char, '')
    
print filename