请问,用线性回归巡线会返回一个theta值,当这个值为负数时,怎么发送这个值呢
使用struct.pack浮点数和正负没什么关系。
struct.pack('f', -3.1415)
@kidswong999
ok,谢谢