Use itertools.groupby (or a neet, pythonic way) to group a list by the difference between the consecutive numbers

后端 未结 0 533
野的像风
野的像风 2020-12-02 20:57

I\'ve read this question

But my question is a little different:

For example:

[0.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 5.0, 9.1, 9.2, 9         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题