以 match-case 替代 if-elif-else

Python 3.10 一大特點 Structural Pattern Matching