通过 python 批量 删除 文件夹 不需要的 字符
import os
import re
def rename_files():
file_list = os.listdir(r"./")
saved_path = os.getcwd()
print("current working directory is"+ saved_path)
os.chdir(r"./")
for file_name in file_list:
new_name = "".join(filter(lambda ch: ch not in '需要去掉的字符', file_name))
os.rename(file_name , new_name)
os.chdir(saved_path)
rename_files()