def read_file(data_path, file_name):
    """
    读取指定文件(只限于txt)
    Read the specified file (txt only)
    :param data_path: 要读取的文件路径，请使用/而非/或者\。File path to read，Please use \ \ instead of / or\。
    :param file_name:要读取的文件名，带扩展名。The name of the file to read with the extension
    :return:返回读取文件的内容。Returns the contents of the read file.
    """
    # 读取指定文件(只限于txt)
    file = open(data_path + '/' + file_name, 'r')
    file_data = file.readlines()
    file.close()
    return file_data