我有以下代码:
import serial import time ser = serial.Serial('com4',115200,timeout=1) while 1: time.sleep(10) print ser.readline()
我不想使用串行模块并允许在我的代码中只使用标准的 python 模块。
任何快速建议我该怎么做?
python pyserial
pyserial ×1
python ×1