Files
freeCodeCamp/curriculum/challenges/chinese/07-scientific-computing-with-python/python-for-everybody/strings-and-lists.md

48 lines
520 B
Markdown
Raw Normal View History

---
id: 5e7b9f090b6c005b0e76f066
title: 字符串和列表
challengeType: 11
videoId: lxcFa7ldCi0
dashedName: strings-and-lists
---
# --description--
更多资源:
\- [练习](https://www.youtube.com/watch?v=-9TfJF2dwHI)
# --question--
## --text--
在这个代码中n 等于什么?
```python
words = 'His e-mail is q-lar@freecodecamp.org'
pieces = words.split()
parts = pieces[3].split('-')
n = parts[1]
```
## --answers--
邮件
---
q
---
lar
---
`lar@freecodecamp.org`
## --video-solution--
4