jackfrued / jackfrued/Python-100-Days
Day07,练习5——计算一年中第几天问题
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 187k
- Forks
- 55.8k
- PR merge metrics
- No merged PRs in 30d
Description
这种格式生成的列表意思是二维的吗?数据类型不同也可以?
days_of_month = [
[31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
[31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
][is_leap_year(year)]
另外在用的时候为什么看着又不像是二维的使用?
for index in range(month - 1):
total += days_of_month[index]
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
The issue points to the Day07 Exercise 5 example using days_of_month and is_leap_year(year). Read that lesson's surrounding explanation and verify how the nested list is indexed; done means clarifying the list structure and the indexing behavior in the lesson or its response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100