IndentationError: unexpected indent error

后端 未结 6 1819
太阳男子
太阳男子 2020-12-10 01:49

I am new to Python and am getting this error:

Traceback (most recent call last):
  File \"/usr/local/bin/scrapy\", line 4, in 
    execute()
           


        
6条回答
  •  一整个雨季
    2020-12-10 02:14

    This error occur when you don't correctly write blocks. Forgetting a ":", or not using "Tab" button for blocks and use spaces. When you are transporting a code from one editor to another editor,it can happen. And never forget this: errors aren't always on that line. I came here for this, but I've forgotten an except after a try. because of my unstandard editor, it happend. But it's possible in normal editor.

提交回复
热议问题