from itertools import groupby
result = [list(g) for k, g in groupby(data, lambda x:x=='') if not k]
print(result)
扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄