Skip to content

Instantly share code, notes, and snippets.

@kanekomasahiro
Created March 27, 2021 06:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kanekomasahiro/dc10ee9ac15b10ecfcc45a278f8ee0f0 to your computer and use it in GitHub Desktop.
Save kanekomasahiro/dc10ee9ac15b10ecfcc45a278f8ee0f0 to your computer and use it in GitHub Desktop.
listのlistをflatにする
import itertools
def flat_list_of_lists(inputs):
return itertools.chain.from_iterable(inputs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment