(data, file_path)
将一个list的数组写入txt文件里
    :param data:
    :param file_path:
    :return:
将一个list的数组写入txt文件里
    :param data:
    :param file_path:
    :return:
将一个list的数组写入txt文件里 : param data : : param file_path : : return :
def _save_txt(data, file_path):
    """
    将一个list的数组写入txt文件里
    :param data:
    :param file_path:
    :return:
    """
    if not isinstance(data, list):
        data = [data]
    with open(file_path, mode='w', encoding='utf8') as f:
        f.write('\n'.join(data))
def _save_txt ( data , file_path ) : if not isinstance ( data , list ) : data = [ data ] with open ( file_path , mode = 'w' , encoding = 'utf8' ) as f : f . write ( '\n' . join ( data ) )