[numpy]random.choice()随机选取内容
概述:可以从一个int数字或1维array里随机选取内容,并将选取结果放入n维array中返回。说明:numpy.random.choice(a, size=None, replace=True, p=None)a : 1-D array-like or int If an ndarray, a random sample is generated from its elements.