나는야 데이터사이언티스트/PYTHON Trouble Shooting
[Python]sequence item 0: expected str instance, int found
우주먼지의하루
2020. 10. 20. 00:02
728x90
python에서 list를 문자열로 만들때 사용하는 "".join(a) 할 때 나타나는 오류
"".join()은 string 타입만 가능하다고 한다
그래서 int 타입의 list는 string으로 바꾸고 해야함 !
python int to string method
numbers = [6,10,2]
#int to string
numbers = list(map(str,numbers))
반응형