为什么Python中没有Switch⼀Case语句

2025-03-20 05:45:06
推荐回答(1个)
回答1:

You can do this easily enough with a sequence of if... elif... elif... else.
意思就是:python语法讲究简单明了,if else完全可以很简单的实现switch的所有功能,没必要用switch