agent.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:GitAgent 作者: alexazhou 项目源码 文件源码
def console_output(self,s):
        print('console [%s]>>'%self.console_id,s )
        if self.console_id != None:

            try:
                ws_cocket = client_sockets[ self.console_id ]
                msg = {}
                msg['type'] = 'output'
                msg['content'] = s
                ws_cocket.write_message( msg )

            except Exception as e:
                print('write to websocket failed:',e)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号