回答編集履歴
1
Update
test
CHANGED
@@ -18,3 +18,11 @@
|
|
18
18
|
0
|
19
19
|
3
|
20
20
|
```
|
21
|
+
|
22
|
+
※ Python 3.8 で導入された `:=`(walrus operator) を使う場合。
|
23
|
+
```python
|
24
|
+
idx = 0
|
25
|
+
for _ in range(len(a)):
|
26
|
+
print(idx := a[idx])
|
27
|
+
```
|
28
|
+
|