返回顶部

收藏

A sentence is split up into a list of words

更多
sentence = 'It is raining cats and dogs'

lengths = map(lambda word: len(word), words)
print lengths

标签:Python,Buildin,Function

收藏

0人收藏

支持

0

反对

0

发表评论