Here's one way to this with itertools.groupby and a list comprehension. The grouping is done by checking if an element is zero, ...
確定! 回上一頁