728x90
When I run a .py file, there are times when I get an error like that in the terminal.
This is a logical error, and the indentation is incorrect.
File "c:\Users\Workspace\Python\WPProject.py", line 250
f.write(bodydata.encode())
^
IndentationError: expected an indented block
.py 파일을 실행하면, 터미널에 저런 에러가 뜰 때가 있습니다.
논리적 에러에 해당하며, 들여쓰기가 잘못된 경우입니다.
File "c:\Users\Workspace\Python\WPProject.py", line 250 -> 실행한 해당 파일의 250번째 line
f.write(bodydata.encode()) -> line의 내용
^
IndentationError: expected an indented block -> 해당 라인에 ^ 모양이 붙은 부분이 들여 쓰기가 잘못됨
728x90