반응형
오류 TypeError : 'NoneType'object is not iterable
은 무엇을 의미합니까?
이 Python 코드에서 얻고 있습니다.
def write_file(data, filename): # creates file and writes list to it
with open(filename, 'wb') as outfile:
writer = csv.writer(outfile)
for row in data: # ABOVE ERROR IS THROWN HERE
writer.writerow(row)
해결 방법
이는 data code>의 값이
None
임을 의미합니다.
참조 페이지 https://stackoverflow.com/questions/3887381
반응형
'파이썬' 카테고리의 다른 글
파이썬 Seaborn 다중 막대 그림 (0) | 2020.10.31 |
---|---|
파이썬 간단한 괄호 일치를 확인하는 Python 프로그램 (0) | 2020.10.31 |
파이썬 정규식 일치 수 (0) | 2020.10.31 |
파이썬 Nonetype을 정수 또는 문자열로 변환하는 방법은 무엇입니까? (0) | 2020.10.31 |
파이썬 로딩시 컬러 이미지에 잘못된 색상을주는 OpenCV (0) | 2020.10.31 |
댓글