或者,更一般的问题是,如何切割数组以获得每个第n行,所以对于偶数/奇数,你想要跳过一行,但在一般情况下,你想要得到每一个n- th行,跳过n-1行.
python arrays
arrays ×1
python ×1