def echo_percent(self,transferred=<NUM_LIT:1>, status=None):
self.transferred += transferred<EOL>self.status = status or self.status<EOL>end_str = "<STR_LIT:\r>"<EOL>if self.transferred == self.toBeTransferred:<EOL><INDENT>end_str = '<STR_LIT:\n>'<EOL>self.status = status or self.fin_status<EOL><DEDENT>print(self.__get_bar() + end_str)<EOL>
Sample usage:
            f=lambda x,y:x+y
            ldata = range(10)
            toBeTransferred = reduce(f,range(10))

            import time
            progress = ProgressBarUtils("viewbar", toBeTransferred=toBeTransferred, run_status="正在下载", fin_status="下载完成")    
            for i in ldata:  
                time.sleep(0.1)  
                progress.echo_percent(i)