結果 : define match function in python