If the optional initializer is present, it is placed before the items
of the iterable in the calculation, and serves as a default when the
iterable is empty. If initializer is not given and iterable contains
only one item, the first item is returned.
引用reduce docs,接口是:
例如,初始值设定项可以是:
^{pr2}$相关问题 更多 >
编程相关推荐