所有 4 克(无填充):# window size:ws = 4lst2 = [ ''.join(lst[i:i+ws]) for i in range(0, len(lst)) if len(lst[i:i+ws]) == 4]不重叠的 4 克:lst3 = [ ''.join(lst[i:i+ws]) for i in range(0, len(lst), ws) if len(lst[i:i+ws]) == 4]