0
点赞
收藏
分享

微信扫一扫

Python编程:Tornado获取客户端的端口port


还是Google给力

self.request.connection.context.address

output: ('127.0.0.1', 56209)


参考:
​​​https://stackoverflow.com/questions/33155831/how-to-get-the-client-port-in-requesthandler​​​




举报

相关推荐

0 条评论