python判断列表的连续数字范围并分块的方法 情况一:列表中的数字是连续数字(从小到大)fromitertoolsimportgroupbylst=[1,2,3,5,6,7,8,11,12,13,19]#连 数字范围