結果 : python choose function based on input