@wrapper def add(a, b): return Coordinate(a.x + b.x, a.y + b.y 等同于: add = wrapper(add) 资料:12步轻松搞定python装饰器 http://python.jobbole.com/81683/