Skip to content

Instantly share code, notes, and snippets.

@kurozumi
Created October 20, 2015 14:27
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 kurozumi/d41a4bddf2c3c88466b4 to your computer and use it in GitHub Desktop.
Save kurozumi/d41a4bddf2c3c88466b4 to your computer and use it in GitHub Desktop.
【Python】リスト内包記法
print [x+2 for x in range(0,5) if x % 2 == 0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment