結果 : python define function in for loop