selfteaching / selfteaching/selfteaching-python-camp
Day 4 while函数去偶数行
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 151
- Forks
- 875
- PR merge metrics
- No merged PRs in 30d
Description
求教同学和教练,九九乘法表去偶数行,我用了一个比较笨的方法,用while X%2==0来判断偶数行,然后terminate后续的函数,但结果却依然是完整的乘法表。把break 替换为continue结果只出现1*1=1。到底哪里出错了呢?

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 with the loop shown in the attached image and trace how the row counter is tested and how break or continue affects the loop. Done means the九九乘法表 output contains only odd-numbered rows, with the behavior of each control statement understood and verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100