摘要: import socket s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) hostname = socket.gethostname() # 获取电脑名称 gethostbyname 参数为一个域名,返回一个指向hostent 的指针 ip 阅读全文
posted @ 2020-08-18 22:21 XuMou 阅读(1263) 评论(0) 推荐(1) 编辑