selfteaching / selfteaching/selfteaching-python-camp

【内容分享】 缩进时 tab和空格混合使用会导致莫名其妙的错误

Open
#1,088 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

学习心得分享
Dominant language
Python
Stars
151
Forks
875
PR merge metrics
No merged PRs in 30d

Description

缩进时 tab和空格混合使用会导致莫名其妙的错误
Python没有强制要求你用Tab缩进或者用空格缩进,空格几个也没有强制要求,但是绝对不能混用Tab和空格。
建议了使用4个空格作为标准缩进。

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.

Research direction

Start by locating the relevant Python indentation guidance in the project’s learning content and determine which page or lesson this suggestion concerns. Done means the content clearly explains that tabs and spaces must not be mixed and recommends four spaces for indentation.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.