(no title)
sischoel | 7 months ago
>>> from operator import itemgetter
>>> dct = {'greeting': 'hello', 'thing': 'world', 'farewell': 'bye'}
>>> thing, greeting = itemgetter("thing", "greeting")(dct)
>>> thing
'world'
>>> greeting
'hello'
notpushkin|7 months ago
https://docs.python.org/3/library/operator.html#operator.att...
sischoel|7 months ago
unknown|7 months ago
[deleted]
giingyui|7 months ago
[deleted]