php 网站出现乱码,建筑公司网站广告宣传语,稿定详情页设计模板,wordpress搭建博客简书numpy.random.randint(low, highNone, sizeNone, dtypel)
产生[low~high)范围内的整数#xff0c;不包括high
import numpy as npa np.random.randint(0, 2, 10)
print(a) # [0 0 1 1 0 0 1 0 0 0]numpy.random.randint(low, highNone, sizeNone, dtypel)
产生[low~high)范围内的整数不包括high
import numpy as npa np.random.randint(0, 2, 10)
print(a) # [0 0 1 1 0 0 1 0 0 0]