結果 : python define function in loop