python初心者です、宜しくお願いします。
windows10 python3.7へpyserialをインストール行い下記コードを実行しましたが・・・
import struct, binascii, serial
s = serial.serial(2, 115200)
== RESTART: C:\Users\aaaa\AppData\Local\Programs\Python\Python37\test1.py ==
Traceback (most recent call last):
File "C:\Users\aaaa\AppData\Local\Programs\Python\Python37\test1.py", line 3, in
s = serial.serial(2, 115200)
AttributeError: module 'serial' has no attribute 'serial'
上記エラーが出ます、対処方法をご教授ください。