def sum(alist): first,*other=alist return first+sum(other) if other else firstprint ( sum(range(1,101)) )'''输出:5050'''