thenewlist = map(lambda x: x + 23, theoldlist). This is hardly the clearest code. Fortunately, since Python 2.0, we can use a list comprehension instead:
確定! 回上一頁