仿照《how to use linux epoll with python》写的一个聊天室程序,比较简单。 python版本:2.7.3 #!/usr/bin/python # -*- coding:utf-8 -*- import socket, select&nbs
#!/usr/bin/python # -*- coding:utf-8 -*- import socket, select EOL1 = b'\n\n' EOL2 = b'\n\r\n' response &nb
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号