numpy.sum numpy.sum(a, axis=None, dtype=None, out=None, keepdims=False)[source] Sum of array elements over a given axis. Parameters: a : array_like Elements to sum. axis : None or int or tuple of ints, optional Axis or axes along which a sum is perfo…
numpy.argsort numpy.argsort(a, axis=-1, kind='quicksort', order=None)[source] Returns the indices that would sort an array. Perform an indirect sort along the given axis using the algorithm specified by the kind keyword. It returns an array of indice…
Python dictionary 字典 常用法 d = {} d.has_key(key_in) # if has the key of key_in d.keys() # keys list d.values() # values list d.get(key_in,[defualt]) # it will return 'NoneType' or [default] if with the secon…