目录 方法一 方法二 方法一 import random import numpy as np range_ = list(np.linspace(1,20,20,endpoint=True, dtype=int)) random