求解释个程序,该如何解决

求解释个程序
#!/usr/bin/python
# Filename: lambda.py

def make_repeater(n):
    return lambda s: s*n

twice = make_repeater(2)

print twice('word')
print twice(5) 

------解决方案--------------------
引用:
引用:make_repeater返回一个函数,所以twice就是个函数,可以(...)调用执行。因为函数很简单所以用lambda匿名写法,如果很复杂就照正常方式,在合适的地方写def xxx(...):
那为什么第一个输出wordword



>>> 'word'*2
'wordword'