Code Monkey home page Code Monkey logo

Comments (8)

chettoy avatar chettoy commented on July 22, 2024

The reason for not answering questions is that the question bank interface is not currently included in the open source code.
A binary containing the question bank interface may be released later.
不回答问题的原因是,题库接口目前不包括在开放源代码中
包含题库接口的二进制文件可能会在以后发布

from fxxkstar.

2682856025 avatar 2682856025 commented on July 22, 2024

怎么用自己的题库接口啊

from fxxkstar.

chettoy avatar chettoy commented on July 22, 2024

Replace the question bank by implementing _answers.req() or _answers.find2(), the latter is recommended as simpler.

class _answers:

    @staticmethod
    def req(fxxkstar: FxxkStar, questions: List[dict], work_id: str, card_url: str) -> List[dict]:
        return []

    @staticmethod
    def find2(question: dict | str) -> list:
        return []

where question might be question: dict = {"topic": "Example question", "type": 0} or question: str = "Example question",
where type = 0: Single Choice, 1: Multiple Choice, 2: Fill in the Blank, 3: Judgment, 4: Short answer questions.
Example of return value

[
    {
        "index": 0,
        "result": [
            {
                "correct": [
                    {
                        "option": "D",
                        "content": "test option D"
                    }
                ],
                "topic": "Example question",
                "type": 0
            }
        ],
        "topic": "Example question"
    }
]

from fxxkstar.

2682856025 avatar 2682856025 commented on July 22, 2024

emmmm 没看懂

from fxxkstar.

2682856025 avatar 2682856025 commented on July 22, 2024

可以出个中文的空模版吗

from fxxkstar.

chettoy avatar chettoy commented on July 22, 2024

In short: you need to implement the function _answers.find2(), with the parameters being the text of the question and the type of question (e.g. radio, fill-in-the-blank), and the return value being the query result of the question bank, in the format above.
简而言之:你需要实现函数_answers.find2(),参数是问题的文本和问题的类型(如单选、填空),返回值是题库的查询结果,格式如上。

from fxxkstar.

chettoy avatar chettoy commented on July 22, 2024

In this function, you need to request your question bank to query the incoming questions and convert the returned results into the above format.
在这个函数中,你需要请求你的题库查询传入的问题,并将返回的结果转换为上述格式

from fxxkstar.

Darth-Zzz avatar Darth-Zzz commented on July 22, 2024

可不可以让程序随便回答一下题目,再根据反馈得到正确的答案

from fxxkstar.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.