“unexpected indent” error when using notepad++ for creating django function

前端 未结 3 2030
日久生厌
日久生厌 2021-02-13 16:29

I am following this book to learn django using notepad++, something interesting happens, when I type the function using notepad++ for the following script:

def cu         


        
3条回答
  •  野的像风
    2021-02-13 16:46

    Tell Notepad++ to show you all characters: go View > Show Symbol > Show All Characters. This will show tabs as and spaces as . Replace tabs with spaces where necessary to normalize the indentation.

提交回复
热议问题