编程思路 代码 import os import shutil spectrum_save = r'./data/spectrum2' def txt_path(dirname): for maindir, subdir, file_name_list in os.walk(dirname):