반응형

import serial.tools.list_ports as sp
list = sp.comports()
connected = []


for i in list:
connected.append(i.device)
print("Connected COM ports: " + str(connected))


반응형

'python > python basic' 카테고리의 다른 글

python basic  (0) 2018.11.12
python programming  (0) 2018.11.12
[python][cv2]ImportError:No module named cv2  (0) 2018.11.12
[python]SyntaxError:Non-ASCII charater '\xec'  (0) 2018.11.12
[python][source]menu ,input,output data  (0) 2018.11.12

+ Recent posts