나의 블로그
[Python] IndentationError 본문
IndentationError: unexpected indent (들여쓰기 오류)
import matplotlib.pyplot as plt
x = [10, 20, 30, 10, 30, 20, 30, 50, 20, 10, 20]
plt.hist(x)
plt.show()
- 수정
import matplotlib.pyplot as plt
x = [10, 20, 30, 10, 30, 20, 30, 50, 20, 10, 20]
plt.hist(x)
plt.show()
- 참고
https://korbillgates.tistory.com/92
[파이썬] 파이썬 에러 IndentationError: expected an indented block
안녕하세요 한주현입니다. 오늘은 파이썬 스크립트 작성 시 자주 보게되는 오류 중 하나인, IndentationError: expected an indented block 에 대하여 알아보겠습니다. 문제 상황 IndentationError: expected an indented
korbillgates.tistory.com
'Python' 카테고리의 다른 글
| [Python] 타입 변환, 형변환 (0) | 2025.01.05 |
|---|---|
| [Python] 문자열의 사용 (0) | 2025.01.05 |
| [Python] 난수 생성 (0) | 2023.09.17 |