#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http

제목writerow함수 질문드립니다ㅠㅠ2020-01-07 16:04
작성자

간단한 리스트를 만들어 list = [[123], [456], [789]] 를 선언하고

import csv

file = open('try.csv', 'w')

mywriter = csv.writer(file)

for i in list:

   mywriter.writerow(i)

를 실행하면

123


456


789

가 출력됩니다

왜 한칸씩 띄어져서 출력되는지 부탁드립니다!

댓글
이전Dynamic Language Level 102020-01-08
다음step11질문2020-01-06