selfteaching / selfteaching/selfteaching-python-camp
【内容分享】 缩进时 tab和空格混合使用会导致莫名其妙的错误
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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