三行Python代码查询IP

from socket import *
while 1:
    data=input('输入查询网址:')
    print(gethostbyname(data))

猜你喜欢

转载自www.cnblogs.com/knis/p/12357487.html