import socket # UDP方式でソケット作成 client_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) server_address = "localhost" server_port = 9001 try ...