2021-05-05 17:13:49 +00:00
|
|
|
|
---
|
|
|
|
|
id: 5e7b9f080b6c005b0e76f064
|
2021-07-02 13:15:29 +00:00
|
|
|
|
title: Python 列表
|
2021-05-05 17:13:49 +00:00
|
|
|
|
challengeType: 11
|
|
|
|
|
videoId: Y0cvfDpYC_c
|
2021-10-03 19:24:27 +00:00
|
|
|
|
bilibiliIds:
|
|
|
|
|
aid: 249460305
|
|
|
|
|
bvid: BV1Dv411E7Uj
|
|
|
|
|
cid: 376532993
|
2021-05-05 17:13:49 +00:00
|
|
|
|
dashedName: python-lists
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# --question--
|
|
|
|
|
|
|
|
|
|
## --text--
|
|
|
|
|
|
2021-07-02 13:15:29 +00:00
|
|
|
|
在這些代碼運行後,x 的值是什麼?
|
2021-05-05 17:13:49 +00:00
|
|
|
|
|
|
|
|
|
```python
|
|
|
|
|
fruit = "banana"
|
|
|
|
|
x = fruit[1]
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## --answers--
|
|
|
|
|
|
|
|
|
|
banana
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
a
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
b
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
True
|
|
|
|
|
|
|
|
|
|
## --video-solution--
|
|
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|