0
我在Windows 7中使用Python3,我安装了pyserial 3.3。我创建了一个与这些线路码serial.py文件名为:Python属性错误:模块“串行”没有属性'串行'
import serial
ser = serial.Serial('COM4', 9600, timeout=0)
ser.write(b'mymessage')
,它会显示此错误消息:
attributeError: module 'serial' has no attribute 'Serial'
在他们documentation其他所有样品是一样的,我不能使用任何其中。