#!/usr/bin/python
import urllib
def cbk(a,b,c):
per=100.0 * a * b /c
if per>100:
per=100
print '%.2f%%' % per
url='http://www.sina.com.cn'
local='/home/dongjichao/sina.html'
urllib.urlretrieve(url,local,cbk)
import urllib
def cbk(a,b,c):
per=100.0 * a * b /c
if per>100:
per=100
print '%.2f%%' % per
url='http://www.sina.com.cn'
local='/home/dongjichao/sina.html'
urllib.urlretrieve(url,local,cbk)