用python写一个简单的得到网站IP的程序
2011-12-22 23:54 Donze Yeap 阅读(207) 评论(0) 编辑 收藏 举报#-*- encoding: utf-8 -*-
'''
Created on 2011-12-22
@author: Donze Yeap
'''
import socket
Website = raw_input('网址: ')
ip = socket.gethostbyname(Website)
print ip
网址: www.baidu.com
220.181.111.148