Skip to content

Instantly share code, notes, and snippets.

@shihongzhi
Created June 30, 2010 07:58
Show Gist options
  • Save shihongzhi/458374 to your computer and use it in GitHub Desktop.
Save shihongzhi/458374 to your computer and use it in GitHub Desktop.
def double(n):
return n*2
li=[5,'a',(2,'b')]
map(double,li) //返回[10,'aa',(2,'b',2,'b')]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment