In some ways you could call this a decision-tree (it does have multiple tiers of sorting), but the overall code is a lot more brief and (when properly formatted with tabs, etc) easier to read.
一定程度上,你可以把上述代码叫作决策树(它确实有很多分支),但总体说来,代码更加简洁(如果能恰当地使用格式化的命名的话)和容易阅读了。
In some ways you could call this a decision-tree (it does have multiple tiers of sorting), but the overall code is a lot more brief and (when properly formatted with tabs, etc) easier to read.
一定程度上,你可以把上述代码叫作决策树(它确实有很多分支),但总体说来,代码更加简洁(如果能恰当地使用格式化的命名的话)和容易阅读了。
应用推荐