結果 : replace function code in python