Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想记录访问我的 web.py 应用程序的机器的 IP 地址。如何在 web.py 框架中访问这些数据?我很高兴将地址发送给我自己的记录器。
用于web.ctx['ip']获取远程 IP 地址。这是一个链接,它解释了上下文中的内容。
web.ctx['ip']