Python 较优美地实现switch