def classify_books(book):
创建一个Python函数，根据流派对图书进行分类。
def classify_books(book):
    if book.genre == "小说":
        return "小说"
    elif book.genre == "推理小说":
        return "推理小说"
    elif book.genre == "科幻小说":
        return "科幻小说"
    elif book.genre == "言情小说":
        return "言情小说"
    elif book.genre == "奇幻小说":
        return "奇幻小说"
    else:
        return "其他"