此代码用于介绍思路,不能运行。 import sensor from pyb import UART while(True): if uart.any(): data = int(uart.readline()) if data ==1: img = sensor.snapshot() img.find_lbp() 这里是其他的处理