Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

IndentationError: expected an indented block

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
documentation

Research direction

No file, test, or entry point is named. Start by inspecting the repository to find the Python example related to this error, then reproduce the reported tab-and-space indentation problem if possible. Done should mean the relevant repository content is identified and any needed correction is clearly specified.

Written by the indexing model from the issue text.

Description

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

Dominant language
Python
Stars
10
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.