📜  如何找到任何人的 IP 地址 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:16.058000             🧑  作者: Mango

代码示例2
import socket
# create an INET, STREAMing socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
print("What website's ip would you like to find?")
site = input()
print((socket.gethostbyname(site), 80))