TypeError: 'int' object is not subscriptable 오류
TypeError: 'int' object is not subscriptable = int 객체는 subscript 할 수 없습니다. subscript란 [1] (1) 이런식으로 기입하는 것을 말한다. 따라서 이런 오류가 발생했다면, 리스트의 경우 a[1] 이런식으로 인덱스를 활용할 수 있지만 int 값이 들어있는 변수 a를 a[1] 같은 식으로 표현된 것이 아닌지 확인한다.
Programming Languages/Python
2022. 2. 22. 22:22