Why should you return instead of just printing the result? Returning values gives you more flexibility in how the function can be used. Consider the pay calculator. We might want to allow a user to ...
Turns pain into rhythm. --- 前华为资深工程师 | 某硅谷创业公司1号员工 |某国企亿级产品线负责人 |连续创业者 ...