Skip to content

Instantly share code, notes, and snippets.

@altnight
Created January 17, 2012 02:45
Show Gist options
  • Save altnight/1624236 to your computer and use it in GitHub Desktop.
Save altnight/1624236 to your computer and use it in GitHub Desktop.
リストから任意の型をとりだしてprintする
a = [1,2,3,4.4,5.5,'aaa']
for i in a:
if isinstance(i, float):
print i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment