結果 : how to pass a method as a parameter in python