selfteaching / selfteaching/selfteaching-python-camp

Day06 用了return后为什么只返回一个值了

Open
#3,064 2 comments 0 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

return处以前用的print(a)可以显示全部结果
换成return后只显示第一个结果
2

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

Start by locating the Day06 exercise referenced in the issue and reproduce the behavior using the attached screenshot as context. Compare the shown print and return cases; done means the issue records a confirmed explanation or documented correction, but no source file or test is named in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
content
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.