結果 : pattern matching code in python