logo

定义函数,发现跳不出循环,不知道哪里错了,求大神解答

2020-09-08 13:43
3
rtqy
def mirobot_finish_moving():
    inByte = 0
    print('start')
    while inByte != '<':
       if uart.any() > 0:
            inByte = uart.read()
            print(inByte)
    print('okay')
##收的数据是<ABCDEFGH buyer>
2020-09-08 18:58
I
网红小智智 星瞳科技

如果涉及代码,需要报错提示与全部代码文本