标签:itertools 列表 style python == lambda too not col
from itertools import groupby
result = [list(g) for k, g in groupby(data, lambda x:x==‘‘) if not k]
print(result)
标签:itertools 列表 style python == lambda too not col
原文地址:https://www.cnblogs.com/lihui123/p/12983821.html