2016-07-27 項目7:mapやfilterの代わりにリスト内包表記を使う Effective Python Python2 a = [1, 2, 3, 4, 5] # リスト内包表記 squares = [x + 3 for x in a] print squares