結果 : how to use pattern matching in python