def write_list(data_list, save_path):
    """
    将list写入文本中,一个元素一行
    :return:
    """
    with open(save_path, 'w') as w:
        if data_list is None or len(data_list) == 0:
            return
        for data in data_list:
            w.write(str(data))
            w.write('\n')
