Skip to content

IndentationError: expected an indented block #1

@GcsSloop

Description

@GcsSloop

在从一个编辑器换到另一个编辑器后再次编辑运行时遇到的问题。
产生原因:未对齐。
真正原因:编辑器设置不同,在其中一个编辑器中默认会把tab换成四个空格,导致空格与tab混用。
解决方案:将tab全部替换为4个空格或将四个空格全部替换为tab
PS:在编辑器中显示全部空白字符就能非常方便的查看是tab还是空格

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions