W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
thislist = ["apple", "banana", "cherry", "orange", "kiwi", "melon", "mango"] print(thislist[-4:-1])
thislist
=
[
"apple"
,
"banana"
,
"cherry"
,
"orange"
,
"kiwi"
,
"melon"
,
"mango"
]
print
(
thislist
[
-
4
:
-
1
])