📌 에러 이름
TypeError: can only concatenate str (not "int") to str
예를 들어
print("add: "+(3+4))
라는 코드에서 에러가 발생하는 것이다!
🔎 해결 방법
print에선 모두 같은 자료형으로 통일해주기
print("add: "+str(3+4))
'프로그래밍 - 활용 > 에러' 카테고리의 다른 글
[Ubuntu] ctrl+D 작동되지 않음 (0) | 2021.12.05 |
---|---|
[Python] numpy 사용 시에 typeError (0) | 2021.09.07 |
[Visual Studio & SourceTree] 깃 허브 한글깨짐 해결 (0) | 2021.09.01 |
[Android] 버전 업데이트관련 오류 발생 및 해결 (0) | 2021.08.06 |