selfteaching / selfteaching/selfteaching-python-camp
Day07 关于作业中合并输出的分享——有时候觉得难是我们想复杂了
Open
Nobody has claimed this yet.
学习心得分享
- Dominant language
- Python
- Stars
- 151
- Forks
- 875
- PR merge metrics
- No merged PRs in 30d
Description
今天一拿到就把这个问题想得特别复杂,到处找例子,学了一个解决办法:
text_en = ['a','b','c']
text_cn = ['一','二','三']
text = []
for item in text_en:
text.append(item)
for item in text_cn:
text.append(item)
print (text)
结果就是['a','b','c','一','二','三']。
很满意!
但是.......
在做着做着发现,合并好像结果合在一起就好了呀?!!!
那么不是:
text_en = ['a','b','c']
text_cn = ['一','二','三']
text = text_en + text_cn
print (text)
就可以了么!!!!!!
天,请佛祖原谅我这个傻子......
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
No source file, test, or entry point is mentioned; start by reading the issue and its existing comments. The post shares two Python list-combination examples but does not define a repository change or completion criteria, so a maintainer would need to clarify the intended documentation or content work first.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- content
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 10/100