问答题

简答题 编写函数,模拟内置函数sum()。

【参考答案】

这里给出Python 3.4.2代码,如果使用Python 2.7.8的话只需要修改其中的print()函数为print......

(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)