1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 #특정 폴더이름 불러오기 / 엑셀저장하기 import os import csv file_list = os.listdir('dm_sang') file_save = [] for file in file_list : file_sa = [] file_sa.append(file) print(file) file_save.append(file_sa) with open('상품명리스트.csv','w+',encoding='euc-kr',newline='') as f : writer = csv.writer(f) writer.writerows(file_save) Colored by Color Scripter cs