Skip to main content
 首页 » 编程设计

python之GAE 是否提供使用套接字的访问权限

2025年05月04日12jiqing9006

有没有一种方法可以在 Google Applications Engine 中使用套接字? 我正在构建一个示例,但每当我尝试使用套接字模块时,控制台都会报告:

**'module' object has no attribute 'socket'.** 

提前致谢。

请您参考如下方法:

不,它不支持套接字。

查看 channel API:

https://developers.google.com/appengine/docs/python/channel/

The Channel API creates a persistent connection between your application and Google servers, allowing your application to send messages to JavaScript clients in real time without the use of polling

Google app engine,sockets are disabled,what it means

支持/不支持的内容: https://developers.google.com/appengine/kb/general#libraries

编辑:现在预览中的套接字支持:https://developers.google.com/appengine/docs/python/sockets/