检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:康梅娟[1] 郭状先 KANG Meijuan;GUO Zhuangxian(Linyi University,Linyi,Shandong Province,276000 China)
机构地区:[1]临沂大学,山东临沂276000
出 处:《科技资讯》2023年第3期6-9,共4页Science & Technology Information
摘 要:该文介绍了如何使用Python开发基于TCP协议和UDP协议的聊天程序,使发送程序和接收程序能够接收键盘输入并彼此之间相互发送数据,并阐述了套接字的概念、套接字的分类、Python中的socket模块、Python中用于套接字编程的重要方法,并分别举例说明了网络中的主机使用TCP套接字和UDP套接字进行通信的流程以及如何使用Python实现TCP套接字编程和UDP套接字编程。This paper introduces how to use Python to develop a chat program based on TCP protocol and UDP protocol, so that the sender and receiver can receive keyboard input and send data to each other. It also describes the concept of sockets, the classification of sockets, the socket module in Python, and the important methods for socket programming in Python. Examples are given to illustrate the process of using TCP sockets and UDP sockets to communicate with hosts in the network, and how to use Python to implement TCP socket programming and UDP socket programming.
分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.70