python socket 建立tcp服務器和客戶端

1. server from socket import * from time import ctime HOST = "" PORT = 21567 BUFSIZ = 1024 ADDR = (HOST, PORT) tcpSerSock = socket(AF_INET, SOCK_STREAM) tcpSerSock.bind(ADDR) tcpSerSock.listen(5) wh
相關文章
相關標籤/搜索