python实现TCP UDP通信(pycharm)计算机网络实验/通信学子
程序员文章站
2022-03-06 13:59:00
python实现TCP UDP通信(pycharm)计算机网络实验/通信学子无论是TCP还是UDP都需要设置服务端以及客户端1.TCP.serverimport socketimport timeservesocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)servesocket.bind(('127.10.10.10', 8888))servesocket.listen(1)print('Server is running.'...