python socket構建簡單web

import socket def handle_req(client): buf = client.recv(1024) client.send("HTTP/1.1 200 OK\r\n\r\n") client.send("rwrww") def main(): sock = socket.socket(socket.AF_INET,socket.SOCK_ST
相關文章
相關標籤/搜索