我有以下代码
import can
def abcd():
bus = can.interface.Bus(channel= '1', bustype='vector',app_name = 'python-can')
MSG = bus.recv(0.5)
while MSG is not None:
MSG = bus.recv(1)
return MSG
if __name__ == '__main__':
abcd()
我想每次都退回味精,我该怎么办?有人能帮我吗?