Python 파일쓰기
·
프로그래밍/Python
# Export data to csv file import csv f = open('output.csv', 'w+', encoding='utf-8', newline='')wr = csv.writer(f) people = ["A","B","C"]n = 0 for n in range(0, 3): wr.writerow([n, people[n]]) f.close() 쉬우니까 재밌다.