結果 : replicate function in python