IT News

TypeError: list indices must be integers or slices, not str 오류해결

posttstory 2022. 11. 12.
728x90

TypeError: list indices must be integers or slices, not str

리스트의 인댁스는 문자열이 아니라 정수여야 한다.

 

# print(bal['ticker'], bal['total'], bal['orderable'])을 수정함
# print(bal['ticker'], bal['total'], bal['orderable'])
   
print(['ticker'], ['total'], ['orderable'])

 

728x90

댓글

💲 추천 글