結果 : how to pass method as parameter in python