参考:http://programmingadvent.blogspot.hk/2012/12/raspberry-pi-uart-with-pyserial.html
Raspberry Pi UART with PySerial
OS: Occidentalis v0.2Hardware: Raspberry Pi Revision B with ...
1 import serial
2 from serial.tools.list_ports import comports
运行这两句时分别遇到错误
第一个先提示 no module name of serial
由于是用python3.7
从python3开始不再自带serial模块
所以就提示它不存在&nb...
错误类型及解决
object is not callable
could not open port
object is not callable
Error:
‘bool’ object is not callable
没有返回值
正确代码:
ser = serial.Serial('COM7', 115200...