如何查socket的listen的帮助文档?
listen是sockettype类型的方法函数,故查帮助
help(模块.类.方法)
help(socket.SocketType.listen)
In [28]: help(socket.SocketType.listen)
Help on method listen:
listen(...) unbound socket._socketobject method
listen(backlog)
Enable a server to accept connections. The backlog argument must be at
least 0 (if it is lower, it is set to 0); it specifies the number of
unaccepted connections that the system will allow before refusing new
connections.
help(模块.类.方法)
help(socket.SocketType.listen)
In [28]: help(socket.SocketType.listen)
Help on method listen:
listen(...) unbound socket._socketobject method
listen(backlog)
Enable a server to accept connections. The backlog argument must be at
least 0 (if it is lower, it is set to 0); it specifies the number of
unaccepted connections that the system will allow before refusing new
connections.