Skip to content

Instantly share code, notes, and snippets.

@Hanaasagi
Created February 6, 2017 13:40
Embed
What would you like to do?
# -*-coding:UTF-8-*-
from operator import methodcaller
l = ['abc', 'efg']
map(methodcaller('upper'), l)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment