摘要: 我们在写代码的使用,经常会遇到if else 很长很长的代码,这种要怎么优化,一直是仁者见仁智者见智的 我说下我的优化方案 原始代码 例如: if (income <= 10000) { return income*0.365; } else if (income <= 30000) { retur 阅读全文
posted @ 2023-05-19 16:23 makalo 阅读(71) 评论(0) 推荐(0) 编辑