NumPy的random子库 np.random.* np.random.rand() np.random.randn() np.random.randint() import numpy as np a=np.random.rand(,,) a Out[]: array([[[ 0.08662874, 0.82948848, 0.68358736, 0.85925231, 0.18250681], [ 0.62005734, 0.38014728, 0.85111772, 0.07739155…