본문으로 건너뛰기
0

이 레슨은 당분간 영어로 제공돼요.

Pattern matching

When a value can take many shapes, a long elif chain gets messy. The match statement, added in Python 3.10, compares a value against patterns and runs the first one that fits.