按照某一概率抽取

np.random.choice([0,1],p=[0.7,0.3])

posted @ 2020-07-15 14:31  yjy888  阅读(121)  评论(0)    收藏  举报