Pattern Matching คืออะไร โครงสร้างควบคุมแบบกำหนดเงื่อนไขในภาษา Python มีลักษณะการทำงานคล้ายกับคำสั่ง if..else หรือ if..elif…else แต่สามารถทำงานกับชนิดข้อมูลได้หลายค่า ตัวอย่างเช่น List , Tuple , Dictionary , Object (รองรับการทำงานใน Python 3.10 ขึ้นไป) รูปแบบของ Pattern Matching Literal Pattern Wildcard Pattern Capture Pattern OR Pattern Sequence Pattern Mapping Pattern Class Pattern โครงสร้างคำสั่ง