python《文件下载进度显示》 urllib.request.urlretrieve(self.__path,self.__name,jindu)
#coding=utf-8importthreadingimportos,sysimporturllib.requestasur#显示调用函数defjindu(a,b,size):os.system('cls')per=100*a*b/sizeper=round(per,2)ifper>100:per=100sys.stdout.write('下载进度:{0}%\r'.format(per))sy