一个方程的取值形式如下:
x = [0x02,0x00] # which is later internally converted to in the called function to 0x300
y = [0x01, 0xFF]
z = [0x01, 0x0F]
我该如何为这个函数生成一系列的测试值? 例如,我想从一个for循环中发送100个奇数值。
for i in range(0,300):
# where a,b are derived for a range
x = [a,b]
我的问题表述不够清晰,请允许我澄清一下。我想问如何生成不同的值来代替 a,b
,使得 x =[a,b]
有所变化。