freeCodeCamp/curriculum/challenges/chinese-traditional/07-scientific-computing-wit.../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