仿wget进度条的实现