python error : list indices must be integers or slices, not str

2020. 5. 23. 12:25·Error code 모음/4. Python errors
반응형

이 에러는 인덱싱을 할 때 있어서, 인덱싱으로 기입해준 문자열이 제대로 일치하지 않거나

잘못되었을 때 나타나는 에러이다.

 

최근에 자주 이런 에러를 만났었는데.

indices 가 뭐지... 곰곰히 생각을 하다가..문득..

indices 는 index 의 복수형.. 이라는 것을 깨달앗다.

 

그토록 많이 외웟던 단어이건만... 이 에러가 나올 때마다..다시 찾고 바로 해결하고 넘어가느냐..에휴...

바보스럽다..ㅠㅠ

 

앞으로는 이런 것을 보면 인덱싱 쪽에 문제가 있다는 것을 캐치해야겟다

 

주의!

 

참고링크

https://www.codeit.kr/community/threads/7

 

TypeError: list indices must be integers or slices, not str 오류 | 코드잇

새로운 코딩 교육의 시작, 월 3만원대로 Python, JavaScript, HTML/CSS, Java 등 1,600개 이상 프로그래밍 강의를 무제한 수강하세요!

www.codeit.kr

 

반응형

'Error code 모음 > 4. Python errors' 카테고리의 다른 글

[python error] ImportError: cannot import name 'abc' from 'bson.py3compat'  (0) 2020.09.05
[python error] : _csv.reader' object is not subscriptable  (0) 2020.06.21
python error: Could not import the lzma module. Your installed Python is incomplete.  (0) 2020.04.08
python error: do_this( ) takes 1 positional argument but 15 were given  (0) 2020.03.18
python error: The "freeze_support()" line can be omitted if the program is not going to be frozen to produce an executable.  (0) 2020.03.17
'Error code 모음/4. Python errors' 카테고리의 다른 글
  • [python error] ImportError: cannot import name 'abc' from 'bson.py3compat'
  • [python error] : _csv.reader' object is not subscriptable
  • python error: Could not import the lzma module. Your installed Python is incomplete.
  • python error: do_this( ) takes 1 positional argument but 15 were given
쟈누
쟈누
Ad astra per aspera
    반응형
  • 쟈누
    쟈누의 기록공간
    쟈누
  • 전체
    오늘
    어제
    • 분류 전체보기 (444)
      • AWS (31)
        • Glue (4)
        • S3 (1)
      • 클라우드 (0)
      • Data Engineering (37)
        • GitHub (10)
        • NiFi (11)
        • Spark (10)
        • Snowflake (0)
        • 머신러닝, AI (6)
      • 언어 (118)
        • 데이터 베이스 (42)
        • JAVA (9)
        • Python (34)
        • Java Script (15)
        • Linux (18)
      • 프로젝트, 인강 그리고 책 (30)
        • Spotify Project (7)
        • RASA chatbot Project (9)
        • Naver shopping Project (6)
        • 빅데이터를 지탱하는 기술 (8)
      • OLD (56)
        • IT 용어 사전 (13)
        • Front End (12)
        • Back End (31)
      • Error code 모음 (165)
        • 1. SQL errors (17)
        • 2. Hadoop errors (20)
        • 3. Linux Errors (14)
        • 4. Python errors (33)
        • 5. JAVA, Spring errors (41)
        • 6. Jav Script errors (10)
        • 7. Dev Tools errors (9)
        • 8. Git errors (8)
        • 9. Jenkins Errors (4)
        • 10. airflow Errors (2)
        • 11. Aws errors (7)
      • 개인 (1)
        • 책 (1)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
    • 블로그 관리
    • 글쓰기
  • 링크

  • 공지사항

    • 간단한 블로그 소개
  • 인기 글

  • 태그

    json
    API
    node
    SQL
    python error
    리눅스
    Git
    AWS
    java
    install
    error
    MySQL
    파이썬
    Spring
    에러
    NiFi
    linux
    Python
    자바
    설치
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
쟈누
python error : list indices must be integers or slices, not str
상단으로

티스토리툴바