What to do with “Unexpected indent” in python?

前端 未结 17 2684
天涯浪人
天涯浪人 2020-11-22 07:46

How do I rectify the error \"unexpected indent\" in python?

17条回答
  •  南旧
    南旧 (楼主)
    2020-11-22 08:07

    Make sure you use the option "insert spaces instead of tabs" in your editor. Then you can choose you want a tab width of, for example 4. You can find those options in gedit under edit-->preferences-->editor.

    bottom line: USE SPACES not tabs

提交回复
热议问题