摘要: try: s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.connect(("8.8.8.8", 80)) self.ip = s.getsockname()[0] print("ip", self.ip) except: self.ip 阅读全文
posted @ 2024-01-23 21:05 liuweipaul123 阅读(6) 评论(0) 推荐(0) 编辑