selfteaching / selfteaching/selfteaching-python-camp
Day08 第一题的error type
Open
Nobody has claimed this yet.
question
- Dominant language
- Python
- Stars
- 151
- Forks
- 875
- PR merge metrics
- No merged PRs in 30d
Description
题目说,如果输入参数囨字符串类型则抛出ValueError错误。感觉如果类型不匹配的话,exception应该抓住的是TypeError啊,不知道是题目出错了还是我有什么理解上的问题。
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
Locate the Day08 first exercise and read the surrounding instructions and tests, if present. Compare the stated exception with Python's ValueError and TypeError documentation, then clarify or correct the exercise wording so the expected behavior is unambiguous.
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
- Mostly clear
- Newbie friendliness
- 35/100