(num,total)
进度条
    :param num:
    :param total:
    :return:
进度条
    :param num:
    :param total:
    :return:
进度条 : param num : : param total : : return :
def view_bar(num,total):
    """
    进度条
    :param num:
    :param total:
    :return:
    """
    ret = num / total
    ag = int(ret * 50)
    ab = "\r[%-50s]%3d%%%6d/%-6d" % ('=' * ag, 100*ret, num, total)
    sys.stdout.write(ab)
    sys.stdout.flush()
def view_bar ( num , total ) : ret = num / total ag = int ( ret * 50 ) ab = "\r[%-50s]%3d%%%6d/%-6d" % ( '=' * ag , 100 * ret , num , total ) sys . stdout . write ( ab ) sys . stdout . flush ( )