reduce可以选择传入第三个参数。
根据reduce的说明文档:Apply a function of two arguments cumulatively to the items of a sequence,
from left to right, so as to reduce the sequence to a single value.
For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates
((((1+2)+3)+4)+5). If initial is present, it is placed before the items
of the sequence in the calculation, and serves as a default when the
sequence is empty.
如果传入第三个参数,会被追加到你的 nums 这个列表的最前面。这样会导致你写的 to_float 的第一次的入参从 to_float(-1, 1)变为 to_float(0.0, -1)
因此不传入此参数,会导致point值一直是0
→_→