-
numpy.inf
表示+∞,没有确切的数值,类型为浮点型 -
numpy.reshape
candidates = np.arange(10)
candidates = candidates.reshape(1, 10)
candidates = candidates.reshape(10, 1)
- numpy.random.randint()
- numpy.bincount()
统计原数组中每一项出现的频次
numpy.inf
表示+∞,没有确切的数值,类型为浮点型
numpy.reshape
candidates = np.arange(10)
candidates = candidates.reshape(1, 10)
candidates = candidates.reshape(10, 1)