Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
如何把一个浮点数强制转换成整数,然后用串口发送出去?代码怎么写
>>> a = 1.234 >>> b = int(a) >>> b 1