在Python中如果有
[1,2,3,4,1,2,3,1,2,1]
列表,我希望在大小减小时拆分列表
[1,2,3,4], [1,2,3], [1,2], [1]
我该如何编码?
python list
list ×1
python ×1