Created
March 27, 2021 06:30
-
-
Save kanekomasahiro/dc10ee9ac15b10ecfcc45a278f8ee0f0 to your computer and use it in GitHub Desktop.
listのlistをflatにする
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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