selfteaching / selfteaching/selfteaching-python-camp

Day02 一些在写代码时容易犯的小错误

Open
#545 1 comment 3 reactions 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

如果之前学习过其他语言,比如ruby ,是不是经常会犯忘记在定义函数 判断语句后面加上":",所以经常出现”syntax-error“,就是语法错误,我基本每天都会犯。还有就是缩进问题,Python对于缩进要求比较严格。但是在vscode里,提示错误快准狠,会有下滑红线告诉你错误位置,仔细点对照着检查就行。对于括号()没有补全也是,在代码中修修改改,很容易就多一边或者少一边括号,这些都是很简单但是经常会犯错的。还有一点也很重要,就是一定要审题 审题 啊,不然最后做出来的东西根本不符合作业要求。二期同学不要方,不要放弃,你正在经历的我们已经经历过了,坚持下去就对了,千万不要放弃,熬过去之后你就知道多么想扇一巴掌当初想放弃的那个你。

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

The issue contains a learner reflection about Python syntax errors, indentation, brackets, VS Code feedback, and following assignment requirements, but names no files or tests. First determine whether this repository accepts this kind of educational content and where it belongs; the work is complete only when a specific documentation change and its location are agreed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
content, documentation
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.