简单的串口通信代码 python代码#!/usr/bin/python2.7import sysimport serialimport timetry: ser = serial.Serial('/dev/ttyUSB0', 9600)except Exception, e: print 'open serial failed.%s'%e exit(1) # echoprint 'open ... linux 2023-05-17 59 点赞 0 评论 89 浏览