
import datetime
import shutil

def mkdir(path):
    import os

    path = path.strip()

    # 去除尾部 \ 符号
    path = path.rstrip("\\")

    isExists = os.path.exists(path)
    if not isExists:
        os.makedirs(path)
        return True
    else:
        return False


def str2red(arg):
    return "\033[0;31m" + arg + "\033[0m"


def print_red(arg):
    print("\033[0;31m" + arg + "\033[0m")


def timeManager(begin_time, last_time, id, remainings):
    now = datetime.datetime.now()
    time_run_delta = now - last_time
    print('finish: %d, 总运行时间：%s， 时间间隔：%s，预计完成时间：%s' %
          (id, str(now - begin_time), str(time_run_delta), str(time_run_delta * remainings)))
    return now

class TimeManager:
    def __init__(self):
        pass


    def print_interval(self, begin_time, last_time):
        now = datetime.datetime.now()
        time_run_delta = now - last_time
        print('总运行时间：%s， 时间间隔：%s' % (str(now - begin_time), str(time_run_delta)))
        return now


def cpy_list2list(list_1, list_2):
    for i in range(list_1.__len__()):
        shutil.copy(list_1[i], list_2[i])
ec7dac3b67095e133d4a516593fc6b838caef46b
<mask token>


def mkdir(path):
    import os
    path = path.strip()
    path = path.rstrip('\\')
    isExists = os.path.exists(path)
    if not isExists:
        os.makedirs(path)
        return True
    else:
        return False


<mask token>


def print_red(arg):
    print('\x1b[0;31m' + arg + '\x1b[0m')


<mask token>


class TimeManager:

    def __init__(self):
        pass

    def print_interval(self, begin_time, last_time):
        now = datetime.datetime.now()
        time_run_delta = now - last_time
        print('总运行时间：%s， 时间间隔：%s' % (str(now - begin_time), str(
            time_run_delta)))
        return now


<mask token>

<mask token>


def mkdir(path):
    import os
    path = path.strip()
    path = path.rstrip('\\')
    isExists = os.path.exists(path)
    if not isExists:
        os.makedirs(path)
        return True
    else:
        return False


def str2red(arg):
    return '\x1b[0;31m' + arg + '\x1b[0m'


def print_red(arg):
    print('\x1b[0;31m' + arg + '\x1b[0m')


<mask token>


class TimeManager:

    def __init__(self):
        pass

    def print_interval(self, begin_time, last_time):
        now = datetime.datetime.now()
        time_run_delta = now - last_time
        print('总运行时间：%s， 时间间隔：%s' % (str(now - begin_time), str(
            time_run_delta)))
        return now


def cpy_list2list(list_1, list_2):
    for i in range(list_1.__len__()):
        shutil.copy(list_1[i], list_2[i])

<mask token>


def mkdir(path):
    import os
    path = path.strip()
    path = path.rstrip('\\')
    isExists = os.path.exists(path)
    if not isExists:
        os.makedirs(path)
        return True
    else:
        return False


def str2red(arg):
    return '\x1b[0;31m' + arg + '\x1b[0m'


def print_red(arg):
    print('\x1b[0;31m' + arg + '\x1b[0m')


def timeManager(begin_time, last_time, id, remainings):
    now = datetime.datetime.now()
    time_run_delta = now - last_time
    print('finish: %d, 总运行时间：%s， 时间间隔：%s，预计完成时间：%s' % (id, str(now -
        begin_time), str(time_run_delta), str(time_run_delta * remainings)))
    return now


class TimeManager:

    def __init__(self):
        pass

    def print_interval(self, begin_time, last_time):
        now = datetime.datetime.now()
        time_run_delta = now - last_time
        print('总运行时间：%s， 时间间隔：%s' % (str(now - begin_time), str(
            time_run_delta)))
        return now


def cpy_list2list(list_1, list_2):
    for i in range(list_1.__len__()):
        shutil.copy(list_1[i], list_2[i])

import datetime
import shutil


def mkdir(path):
    import os
    path = path.strip()
    path = path.rstrip('\\')
    isExists = os.path.exists(path)
    if not isExists:
        os.makedirs(path)
        return True
    else:
        return False


def str2red(arg):
    return '\x1b[0;31m' + arg + '\x1b[0m'


def print_red(arg):
    print('\x1b[0;31m' + arg + '\x1b[0m')


def timeManager(begin_time, last_time, id, remainings):
    now = datetime.datetime.now()
    time_run_delta = now - last_time
    print('finish: %d, 总运行时间：%s， 时间间隔：%s，预计完成时间：%s' % (id, str(now -
        begin_time), str(time_run_delta), str(time_run_delta * remainings)))
    return now


class TimeManager:

    def __init__(self):
        pass

    def print_interval(self, begin_time, last_time):
        now = datetime.datetime.now()
        time_run_delta = now - last_time
        print('总运行时间：%s， 时间间隔：%s' % (str(now - begin_time), str(
            time_run_delta)))
        return now


def cpy_list2list(list_1, list_2):
    for i in range(list_1.__len__()):
        shutil.copy(list_1[i], list_2[i])


import datetime
import shutil

def mkdir(path):
    import os

    path = path.strip()

    # 去除尾部 \ 符号
    path = path.rstrip("\\")

    isExists = os.path.exists(path)
    if not isExists:
        os.makedirs(path)
        return True
    else:
        return False


def str2red(arg):
    return "\033[0;31m" + arg + "\033[0m"


def print_red(arg):
    print("\033[0;31m" + arg + "\033[0m")


def timeManager(begin_time, last_time, id, remainings):
    now = datetime.datetime.now()
    time_run_delta = now - last_time
    print('finish: %d, 总运行时间：%s， 时间间隔：%s，预计完成时间：%s' %
          (id, str(now - begin_time), str(time_run_delta), str(time_run_delta * remainings)))
    return now

class TimeManager:
    def __init__(self):
        pass


    def print_interval(self, begin_time, last_time):
        now = datetime.datetime.now()
        time_run_delta = now - last_time
        print('总运行时间：%s， 时间间隔：%s' % (str(now - begin_time), str(time_run_delta)))
        return now


def cpy_list2list(list_1, list_2):
    for i in range(list_1.__len__()):
        shutil.copy(list_1[i], list_2[i])