Python lists can contain collections of whatever you like. ... You can retrieve sub-lists by using slice notation whilst indexing. >>> a[1:-1] [2, 9].
確定! 回上一頁