def make_markdown_table(array: list, title=None):
    """把数组转为markdown格式的字符串
    :array: [['title', 'value'], ['asd', '1']]
    """
    if title:
        array.insert(0, title)
    markdown = '\n' + str('| ')
    for e in array[0]:
        to_add = ' ' + str(e) + str(' |')
        markdown += to_add
    markdown += '\n'
    markdown += '|'
    for i in range(len(array[0])):
        markdown += str('-------------- | ')
    markdown += '\n'
    for entry in array[1:]:
        markdown += str('| ')
        for e in entry:
            to_add = str(e) + str(' | ')
            markdown += to_add
        markdown += '\n'
    return markdown + '\n'
