复习,,[Python]代码im
复习,,[Python]代码im
[Python]代码
import urllib2 class Info: def Show(self,url): page=urllib2.urlopen('http://'+url,timeout=10) data=page.read() name=url[4:-4] open(name+'.html','w').write(data) if __name__=='__main__': a=Info() url=raw_input('Enter the urladdress:\n') a.Show(url)
评论关闭