from typing import List
import math


def split_list(target_list: list, num_elements: int = 5) -> List[list]:
    """
    将list转换成
    :param target_list: 需要拆分的list
    :param num_elements: 每个子列表的数量
    :return: list of list
    """
    return [target_list[i * num_elements: (i + 1) * num_elements] for i in
            range(math.ceil(len(target_list) / num_elements))]