📜  如何使用python代码示例查找网站的IP地址

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

代码示例1
import socket #module for gethostbyname
website = 'www.google.com'# you can put any website
ip = socket.gethostbyname(website)
print(ip)


'Output'
'142.250.182.36'#ip of google.com