📜  如何获取列表的前半部分 python 代码示例

📅  最后修改于: 2022-03-11 14:46:29.843000             🧑  作者: Mango

代码示例1
Use the slicing syntax list[:middle_index] to get the first half of the list 
and list[middle_index:] to get the second half of the list.