代码易读,不再做注释

import serial,os

port = os.popen('ls /dev/ttyACM*').read()[:-1]
baud = 9600
ser = serial.Serial(port, baud)

while True:
    print ser.readline()