回答編集履歴
1
追記
test
CHANGED
@@ -19,3 +19,15 @@
|
|
19
19
|
slice_print(moji, (1, 4))
|
20
20
|
|
21
21
|
```
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
---
|
26
|
+
|
27
|
+
世界は広いです。似たような質問がありました。
|
28
|
+
|
29
|
+
[https://stackoverflow.com/questions/28652976/passing-array-range-as-argument-to-a-function](https://stackoverflow.com/questions/28652976/passing-array-range-as-argument-to-a-function)
|
30
|
+
|
31
|
+
> Python accepts the 1:5 syntax only within square brackets. The interpreter converts it into a slice object. The __getitem__ method of the object then applies the slice.
|
32
|
+
|
33
|
+
|