网站介绍:文章浏览阅读2.9k次。Client.pyfrom socket import *host_name = "DESKTOP-KK1J8DF" # 这个就是本机ipv4地址,通过print(gethostname())获取# 或者终端ipconfig查看ipv4的地址(数字) host_name = "10.8.176.209"port_num = 1200 # 端口号要跟server那里一样,才能在connect里面连接上clientSocket = socket(AF_INET, SOCK_STREA_python iec104
- 链接地址:https://blog.csdn.net/hamburgerJ/article/details/123234829
- 链接标题:python写TCP协议_python iec104_hamburgerJ的博客-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:3668
- 网站标签:python iec104