串口助手发送一个字符串 photo 。python程序我要怎么写,接收到的才是完整字符串啊,或者怎么拼接为完整字符串
import time from pyb import UART uart = UART(3, 19200, timeout=1000) while(True): if uart.any(): print(uart.read())