Y1=(1-X/float(n))*np.random.uniform(0.5,1.0,n)
ValueError: operands could not be broadcast together with shapes (128,) (10,)
首先要定义X和n,定义了之后这段代码在notebook中可以执行