def mirobot_finish_moving(): inByte = 0 print('start') while inByte != '<': if uart.any() > 0: inByte = uart.read() print(inByte) print('okay')
##收的数据是<ABCDEFGH buyer>
如果涉及代码,需要报错提示与全部代码文本