python中使用UDP實現網絡版聊天工具

建立一個基於udp的網絡程序流程很簡單,具體步驟以下:python 建立客戶端套接字 發送/接收數據 關閉套接字 import socket # 發送數據方法 def send_Msg(udp_socket): msg = input("\n please enter your data:") dest_ip = input("\n enter the destination i
相關文章
相關標籤/搜索