python 循环触发一次,python for循环仅执行一次?
import numpy as npdef Vin(t):inputs = []for i in range (1000):if (-1)**(np.floor( 2 * t[i] )) == 1:Vin = (1)inputs.append(Vin)else:Vin = (-1)inputs.append(Vin)return inputswhen I use this function on ...