原创 套接字端口重用

用python編寫socket程序, 在指定端口上監聽服務:import socketsock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)port = 8080sock.bind(