多次打印数组

时间:2015-08-16 07:24:25

标签: python arrays

present_coefiecients = random.sample(xrange(1,50),5)
present_value = random.sample(xrange(1,100),5)
present_weights = ap.array('0;0;0;0;0')
print present_coefiecients
print present_value
print present_weights
c = [a*b for a,b in zip(present_coefiecients,present_value)]
layer_1 = ap.log2(c)
print layer_1

如何运行这些指令集50次,这样我每次都可以获得不同的layer_1值

0 个答案:

没有答案