ctypes数组动态赋值
Data = (1,2,3,4,5,6,7,8)
set_data = (c_byte * 8)(0, 0, 0, 0, 0, 0, 0, 0)
for i in range(len(Data)):
set_data[i] = Data[i]
只能先初始化成全0,然后再轮询赋值
Data = (1,2,3,4,5,6,7,8)
set_data = (c_byte * 8)(0, 0, 0, 0, 0, 0, 0, 0)
for i in range(len(Data)):
set_data[i] = Data[i]
只能先初始化成全0,然后再轮询赋值