from serial import Serialfrom serial.tools.list_ports import comportsfrom websocket_server import WebsocketServer@route('/')def index(info=''): return template('index.html', sers=[(desc, port) for port, desc, hwid in comports()], ws_url=request.url.replace('http', 'ws').replace('8080', '9978'))template中 sers=[(desc, port) for port, desc, hwid in comports()]这是什么语法?
- 2 回答
- 0 关注
- 256 浏览
添加回答
举报
0/150
提交
取消