結果 : how to define a function type in python