Please refresh the page if equations are not rendered correctly.
---------------------------------------------------------------
1. sum() #必须保证处理的内部元素都是list
2.1 list(itertools.chain.from_iterable(a))
2.2 list(chain(*a))
3. import operator;from functools import reduce
4. 直接删除括号
5. list(np.ravel(a)) 只能一维列表
Array
Comments NOTHING