Information display method of programming interface and related equipment

文档序号:9655 发布日期:2021-09-17 浏览:47次 中文

1. An information display method of a programming interface is characterized by comprising the following steps:

receiving a code operation request;

executing code instructions of the programming interface display in response to the code execution request, wherein the code instructions comprise code statements corresponding to at least one specific interactive function;

and marking and displaying the target code statement executed by the client currently in the code instruction, and displaying the running result corresponding to the target code statement.

2. The method of claim 1, wherein prior to the step of receiving a code run request, the method further comprises:

receiving a first code sentence selection request for the code instruction;

determining first code sentence selection information in response to the first code sentence selection request;

the code instructions displayed by the programming interface are executed in response to the code execution request, and the code instructions comprise:

and responding to the code operation request, and determining that a starting code statement starts to operate in the code instruction displayed on the programming interface according to the first code statement selection information.

3. The method of claim 2, wherein the determining, in response to the code run request, that a start code statement begin to run in code instructions displayed in the programming interface according to the first code statement selection information comprises:

responding to the code running request, and determining that the starting code statement starts to run in a code instruction displayed on the programming interface according to the first code statement selection information;

determining at least one specific interactive function to which a sub-function corresponding to the starting code statement belongs, wherein each specific interactive function corresponds to a plurality of code statements;

matching the at least one specific interactive function with a related code statement of the starting code statement, and determining a target specific interactive function in the at least one specific interactive function;

and taking an end code statement in the plurality of code statements which are arranged in sequence and correspond to the target specific interactive function as an end code statement of code operation.

4. The method of claim 1, wherein prior to the step of receiving a code run request, the method further comprises:

receiving a second code sentence selection request for the code instruction;

determining second code sentence selection information in response to the second code sentence selection request;

the code instructions displayed by the programming interface are executed in response to the code execution request, and the code instructions comprise:

and responding to the code running request, and running a second code statement indicated by the second code statement selection information in the code instruction.

5. The method of claim 1, wherein prior to the step of receiving a code run request, the method further comprises:

receiving voice data sent by a server, wherein the voice data is obtained by a teacher client based on collected programming teaching voice;

converting the voice data into text information;

displaying the text information;

and receiving the code instruction input by the student according to the text information.

6. The method of claim 5, wherein said displaying said textual information comprises:

detecting whether the text information contains a first keyword and a second keyword;

under the condition that the text information is detected to contain the first keyword and the second keyword, displaying part of the text information between the first keyword and the second keyword in the text information;

the receiving of the code instruction entered by the student according to the text information includes:

and receiving the code instruction input by the student according to the partial text information.

7. The method of claim 6, wherein the method further comprises:

uploading the partial text information to the server;

and receiving a programming prompt returned by the server, wherein the programming prompt is obtained by comparing the partial text information with questions in a pre-stored question bank by the server and corresponds to target questions matched with the partial text information.

8. The method of claim 3, wherein the marking displays an object code statement currently executed by a client in the code instruction, comprising:

and marking and displaying the target code statement by using a target display mode corresponding to the target specific interactive function.

9. The method of claim 1, wherein the marking displays an object code statement currently executed by a client in the code instruction, comprising:

marking and displaying the target code statement;

highlighting target parameters in the target code statement.

10. A student client, comprising:

the receiving module is used for receiving a code operation request;

the execution module is used for responding to the code execution request and executing the code instruction displayed by the programming interface, wherein the code instruction comprises a code statement corresponding to at least one specific interactive function;

and the mark display module is used for displaying the target code statement executed by the client currently in the code instruction in a mark mode and displaying the running result corresponding to the target code statement.

11. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, a device on which the storage medium is located is controlled to execute the information presentation method of the programming interface according to any one of claims 1 to 9.

12. An apparatus comprising at least one processor, and at least one memory, bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is used for calling the program instructions in the memory and executing the information presentation method of the programming interface according to any one of claims 1 to 9.

Background

On-line live broadcasting teaching is a new field of on-line education and is always concerned. The online live teaching has more advantages, such as freedom in space and time, strong interactivity of live broadcasting and the like. The teaching mode can arouse the learning interest of students and can leave deep impression for the students.

At present, in live programming teaching, after a student writes a section of code, the written code can be operated at a client to obtain an operation result, and then the student can judge whether the written code has a problem according to the operation result. However, for students, the result of the final code operation can only be sensed through interactive operation feedback information such as an operation picture corresponding to a programming task, so that the students are inconvenient to clearly master the action and effect of each part of the code, and the teaching effect is poor.

Disclosure of Invention

The embodiment of the invention provides an information display method of a programming interface and related equipment, and aims to solve the technical problems that in the prior art, students can only perceive the result of final code operation through interactive operation feedback information such as an operation picture corresponding to a programming task, the students are inconvenient to clearly master the action and effect of each part of codes, and the teaching effect is poor.

In a first aspect, an embodiment of the present invention provides an information display method for a programming interface, including:

receiving a code operation request;

executing code instructions of the programming interface display in response to the code execution request, wherein the code instructions comprise code statements corresponding to at least one specific interactive function;

and marking and displaying the target code statement executed by the client currently in the code instruction, and displaying the running result corresponding to the target code statement.

In some embodiments, prior to the step of receiving a code run request, the method further comprises:

receiving a first code sentence selection request for the code instruction;

determining first code sentence selection information in response to the first code sentence selection request;

the code instructions displayed by the programming interface are executed in response to the code execution request, and the code instructions comprise:

and responding to the code operation request, and determining that a starting code statement starts to operate in the code instruction displayed on the programming interface according to the first code statement selection information.

In some embodiments, the determining, in response to the code execution request, that a start code statement starts to execute in the code instructions displayed in the programming interface according to the first code statement selection information includes:

responding to the code running request, and determining that the starting code statement starts to run in a code instruction displayed on the programming interface according to the first code statement selection information;

determining at least one specific interactive function to which a sub-function corresponding to the starting code statement belongs, wherein each specific interactive function corresponds to a plurality of code statements;

matching the at least one specific interactive function with a related code statement of the starting code statement, and determining a target specific interactive function in the at least one specific interactive function;

and taking an end code statement in the plurality of code statements which are arranged in sequence and correspond to the target specific interactive function as an end code statement of code operation.

In some embodiments, prior to the step of receiving a code run request, the method further comprises:

receiving a second code sentence selection request for the code instruction;

determining second code sentence selection information in response to the second code sentence selection request;

the code instructions displayed by the programming interface are executed in response to the code execution request, and the code instructions comprise:

and responding to the code running request, and running a second code statement indicated by the second code statement selection information in the code instruction.

In some embodiments, prior to the step of receiving a code run request, the method further comprises:

receiving voice data sent by a server, wherein the voice data is obtained by a teacher client based on collected programming teaching voice;

converting the voice data into text information;

displaying the text information;

and receiving the code instruction input by the student according to the text information.

In some embodiments, the displaying the textual information includes:

detecting whether the text information contains a first keyword and a second keyword;

under the condition that the text information is detected to contain the first keyword and the second keyword, displaying part of the text information between the first keyword and the second keyword in the text information;

the receiving of the code instruction entered by the student according to the text information includes:

and receiving the code instruction input by the student according to the partial text information.

In some embodiments, the method further comprises:

uploading the partial text information to the server;

and receiving a programming prompt returned by the server, wherein the programming prompt is obtained by comparing the partial text information with questions in a pre-stored question bank by the server and corresponds to target questions matched with the partial text information.

In some embodiments, the marking displays a target code statement currently executed by the client in the code instruction, and includes:

and marking and displaying the target code statement by using a target display mode corresponding to the target specific interactive function.

In some embodiments, the marking displays a target code statement currently executed by the client in the code instruction, and includes:

marking and displaying the target code statement;

highlighting target parameters in the target code statement.

In a second aspect, an embodiment of the present invention further provides a student client, including:

the receiving module is used for receiving a code operation request;

the execution module is used for responding to the code execution request and executing the code instruction displayed by the programming interface, wherein the code instruction comprises a code statement corresponding to at least one specific interactive function;

and the mark display module is used for displaying the target code statement executed by the client currently in the code instruction in a mark mode and displaying the running result corresponding to the target code statement.

In a third aspect, an embodiment of the present invention further provides a storage medium, where the storage medium includes a stored program, and when the program runs, a device in which the storage medium is located is controlled to execute the information presentation method of the programming interface according to the first aspect.

In a fourth aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes at least one processor, and at least one memory and a bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is used for calling the program instructions in the memory and executing the information display method of the programming interface according to the first aspect.

According to the technical scheme, the information display method of the programming interface provided by the embodiment of the invention receives a code operation request; executing code instructions of the programming interface display in response to the code execution request, wherein the code instructions comprise code statements corresponding to at least one specific interactive function; and marking and displaying the target code statement executed by the client currently in the code instruction, and displaying the running result corresponding to the target code statement. Therefore, the target code sentences currently executed by the client in the code instructions can be marked and displayed, the running results corresponding to the target code sentences are displayed, the currently executed code sentences can be clearly displayed, and students can conveniently learn or edit the code sentences. The reason for editing is probably that errors exist in target code sentences, so that students can conveniently master the action and effect of each part of codes, and the teaching effect is good.

Drawings

Fig. 1 is a flowchart of an information displaying method for a programming interface according to an embodiment of the present disclosure;

FIG. 2 is a diagram illustrating a markup display object code statement according to an embodiment of the present application;

FIG. 3 is a diagram illustrating another example of a markup display object code statement provided in an embodiment of the present application;

FIG. 4 is a diagram illustrating a target code statement of another markup display provided by an embodiment of the present application;

FIG. 5 is a diagram illustrating a target code statement according to another embodiment of the present application;

FIG. 6 is a schematic diagram of a further example of a target code statement marked and displayed according to an embodiment of the present application;

fig. 7 is a structural diagram of a student client according to an embodiment of the present application;

fig. 8 is a block diagram of an apparatus according to an embodiment of the present disclosure.

Detailed Description

In order to better understand the technical solutions provided by the embodiments of the present specification, the technical solutions of the embodiments of the present specification are described in detail below with reference to the drawings and specific embodiments, and it should be understood that the specific features in the embodiments and examples of the present specification are detailed descriptions of the technical solutions of the embodiments of the present specification, and are not limitations on the technical solutions of the embodiments of the present specification, and the technical features in the embodiments and examples of the present specification may be combined with each other without conflict.

In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element. The term "two or more" includes the case of two or more.

Referring to fig. 1, fig. 1 is a flowchart of an information displaying method of a programming interface according to an embodiment of the present invention. As shown in fig. 1, the method comprises the following steps:

step 101, receiving a code operation request.

In step 101, a student client may receive a code run request. For example, in the live-broadcast teacher programming teaching process, when the teacher requires the student to complete the programming task, the student may enter a code instruction at the student client, where the code instruction may include at least one code sentence, and the student client may display the code instruction entered by the student and display a corresponding operation button. The student client can receive the click operation of the student on the operation button, and the code operation request is received after the click operation is received.

And 102, responding to the code running request, and running the code instruction displayed by the programming interface, wherein the code instruction comprises a code statement corresponding to at least one specific interactive function.

In step 102, the student client may execute the code instructions displayed by the programming interface in response to the received code execution request. Wherein the code instructions are entered by the student on the student client for completing the programming task arranged by the teacher and may include code statements corresponding to at least one particular interactive function. The specific interactive function may include a graphic interface interactive function, an audio interactive function, a text information interactive function, or a vibration interactive function, etc. For example, the specific interactive function may be to control the cartoon robot to turn left; controlling the cartoon robot to turn right; controlling the cartoon robot to move for a preset distance; displaying a specific picture; displaying specific character information; displaying the firework effect; displaying a specific card; playing music, etc., without limitation.

And 103, marking and displaying the target code statement currently executed by the client in the code instruction, and displaying the running result corresponding to the target code statement.

In step 103, the student client may mark the target code statement currently executed by the client in the display code instruction, and display the running result corresponding to the target code statement. The manner of displaying the target code sentence by the mark may be highlighting, blinking, or the like, and is not limited herein.

Illustratively, FIG. 2 is a diagram of a markup display object code statement. As shown in fig. 2, the specific interactive function executed by the current client is to display a "programming section" card, and the target code statement corresponding to the specific interactive function is "d. At this time, the display target code statement "d.card ()" may be marked in the displayed entered code instruction, and at the same time, a specific interactive function corresponding to the target code statement "d.card ()" may also be displayed: a "programming section" card is displayed.

Illustratively, FIG. 3 is a schematic diagram of another markup display object code statement. As shown in fig. 3, the specific interactive function currently executed by the client is to display a picture of radish, and the target code statement corresponding to the specific interactive function is "d.picture (" 1.jpg ")". At this time, a display target code statement "d.picture (" 1.jpg ")" may be marked in the displayed entered code instruction, and at the same time, a specific interactive function corresponding to the target code statement "d.picture (" 1.jpg ")" may also be displayed: and displaying the radish picture.

Illustratively, FIG. 4 is a schematic diagram of yet another markup display object code statement. As shown in fig. 4, the specific interactive function executed by the current client is displaying cartoon image pictures, and the target code sentence corresponding to the specific interactive function is "d.picture (" 1.png ")". At this time, a display target code statement "d.picture (" 1.png ")" may be marked in the displayed entered code instruction, and at the same time, a specific interactive function corresponding to the target code statement "d.picture (" 1.png ")" may also be displayed: and displaying the cartoon image picture.

Illustratively, FIG. 5 is a schematic diagram of yet another markup display object code statement. As shown in fig. 5, the specific interactive function executed by the current client is to display text information: the '111 modifying font color woolen' and the object code sentence corresponding to the specific interactive function is 'd.write (' 111 modifying font color woolen ')'. At this time, the display target code statement "d.write (" > 111 modification font color ")" may be marked in the displayed entered code instruction, and at the same time, a specific interactive function corresponding to the target code statement "d.write (" > 111 modification font color ")" may also be displayed: the text information "111 modify font color wool" is displayed.

Illustratively, fig. 6 is a schematic diagram of yet another markup display target code statement. As shown in fig. 6, the specific interactive function executed by the current client is displaying a firework effect, and the target code statement corresponding to the specific interactive function is "d. At this time, the target code statement "d.firmware ()" may be marked and displayed in the displayed entered code instruction, and at the same time, a specific interactive function corresponding to the target code statement "d.firmware ()" may also be displayed: and displaying the firework effect.

It should be noted that, in the prior art, in the live programming teaching, after a student writes a piece of code, the written code can be run at the client to obtain a running result, and then the student can judge whether the written code has a problem according to the running result. However, for students, the result of the final code operation can only be sensed through interactive operation feedback information such as an operation picture corresponding to a programming task, so that the students are inconvenient to clearly master the action and effect of each part of the code, and the teaching effect is poor.

In the application, the target code sentences currently executed by the client in the code instructions can be marked and displayed, the running results corresponding to the target code sentences are displayed, the currently executed code sentences can be clearly displayed, and the code sentences can be conveniently learned or edited by students. The reason for editing is probably that errors exist in target code sentences, so that students can conveniently master the action and effect of each part of codes, and the teaching effect is good.

In some embodiments, prior to step 101, the method further comprises:

receiving a first code sentence selection request for the code instruction;

determining first code sentence selection information in response to the first code sentence selection request;

in step 102, the method further comprises:

and responding to the code operation request, and determining that a starting code statement starts to operate in the code instruction displayed on the programming interface according to the first code statement selection information.

In a specific implementation process, the student client may further receive a first code sentence selection request for the code instruction, and may further determine first code sentence selection information in response to the first code sentence selection request. Next, the student client may determine, in response to the code execution request, that the start code sentence starts to be executed in the code instruction displayed in the programming interface according to the first code sentence selection information. That is, the student client can select any code statement from the displayed entered code instructions as the start code statement for code operation according to the first code statement selection information.

For example, also taking fig. 2 as an example, in fig. 2, when the displayed recorded code command is executed, it is normally necessary to start the execution from the first code statement "import ybc _ draw as d". However, some code statement students may already be considered as problem-free with a high degree of confidence, and at this time the students do not need to run these code statements, and much time is wasted if the displayed entered code instructions are still run from the beginning. Therefore, in the present application, the student client may receive a code sentence selection operation input by the student, and acquire first code sentence selection information based on the received code sentence selection operation. For example, the student may click on the code sentence "d.write ("' 111 modified font color ″) "according to the needs of the student, at this time, the student client acquires the first code sentence selection information, and may select the code sentence" d.write ("111 modified font color ″)" as the start code sentence of code operation in the displayed entered code instruction according to the first code sentence selection information. Next, execution can be started from the code statement "d.write (" 111 modified font color ")" without starting from the beginning with all the code instructions already entered that are displayed. Therefore, the students can select any code statement from the displayed recorded code instructions as the initial code statement for code operation according to the needs of the students, and then the student client can operate from the initial code statement, so that the users can conveniently and quickly check whether the code statement to be verified is correct.

In some embodiments, the determining, in response to the code execution request, that a start code statement starts to execute in the code instructions displayed in the programming interface according to the first code statement selection information includes:

responding to the code running request, and determining that the starting code statement starts to run in a code instruction displayed on the programming interface according to the first code statement selection information;

determining at least one specific interactive function to which a sub-function corresponding to the starting code statement belongs, wherein each specific interactive function corresponds to a plurality of code statements;

matching the at least one specific interactive function with a related code statement of the starting code statement, and determining a target specific interactive function in the at least one specific interactive function;

and taking an end code statement in the plurality of code statements which are arranged in sequence and correspond to the target specific interactive function as an end code statement of code operation.

In a specific implementation process, as described above, in response to the code running request, the student client may determine, according to the first code statement selection information, that the start code statement starts to run in the code instruction displayed on the programming interface. Further, the student client may determine at least one specific interactive function to which the sub-function corresponding to the start code statement belongs, where each specific interactive function corresponds to multiple code statements. For example, the sub-function corresponding to the start code sentence may be "execute the following two code sentences circularly n times", and the at least one specific interactive function may be a function of controlling the movement of the cartoon robot, a function of playing audio, a function of displaying an electronic greeting card, and the like. The control cartoon robot movement function may comprise a plurality of code statements arranged in sequence, for example, may comprise three code statements arranged in sequence: executing the following two code statements circularly for n times, wherein the code statements C and D are obtained; the play audio function may comprise a plurality of code statements arranged in sequence, for example, may comprise three code statements arranged in sequence: circularly executing the following two code statements N times, wherein the code statements M and the code statements N are obtained; displaying the electronic greeting card function may comprise a plurality of code statements arranged in sequence, for example may comprise three code statements arranged in sequence: and circularly executing the following two code statements n times, namely the code statement O and the code statement P.

Next, the at least one specific interactive function may be matched with the related code statement of the start code statement to determine a target specific interactive function of the at least one specific interactive function. Assume that all code sentences of the start code sentence in the displayed entered code instructions have 5 pieces, namely, a code sentence C, a code sentence D, a code sentence E, a code sentence F, and a code sentence G. At this time, due to the sequentially arranged three code sentences included in the control cartoon robot moving function: and performing loop execution on the next two code sentences for n times, and correspondingly matching the code sentences C and D with the initial code sentence in the displayed recorded code instruction, wherein the loop execution on the next two code sentences for n times is performed, and the code sentences C and D are correspondingly matched, so that the target specific interactive function can be determined as the function of controlling the movement of the cartoon robot.

Then, an end code statement of the sequentially arranged code statements corresponding to the target specific interactive function may be taken as an end code statement of the code run. Namely, the last code statement D of the three sequentially arranged code statements corresponding to the movement function of the control cartoon robot can be used as the end code statement of the code operation. At this time, it is possible to realize that the operation is started from the "next two code sentences are executed circularly n times" of the start code sentence in the displayed entered code instruction, and the operation is ended until the code sentence D in the displayed entered code instruction is executed. Therefore, when a student does not want to run all code sentences behind the starting code sentence or focuses on the functional section containing the selected starting code sentence, the student can automatically match the ending code sentence of code running, and then can run from the starting code sentence to the ending code sentence only, so that the fact that the running of the displayed recorded code instruction is stopped when the program section corresponding to the target specific interactive function is finished can be automatically controlled, the student can conveniently and quickly check, learn or edit the starting code sentence, the ending code sentence and the code sentence between the starting code sentence and the ending code sentence can be conveniently realized, compared with a mode that the code sentence is run from the starting code sentence to the end of the displayed recorded code instruction, the mode of the application can save the verification time of the code sentence, and is high in verification efficiency and more targeted.

In some embodiments, prior to step 101, the method further comprises:

receiving a second code sentence selection request for the code instruction;

determining second code sentence selection information in response to the second code sentence selection request;

in step 102, the method further comprises:

and responding to the code running request, and running a second code statement indicated by the second code statement selection information in the code instruction.

In a specific implementation process, the student client may further receive a second code sentence selection request for the code instruction, and may further determine second code sentence selection information in response to the second code sentence selection request. Next, the student client may execute the second code sentence indicated by the second code sentence selection information in the code instruction in response to the code execution request. For example, as described above, in fig. 2, when the displayed entered code instruction is executed, it is normally necessary to start the execution from the first code statement "import ybc _ draw as d". However, some code statement students may already be considered as problem-free with a high degree of confidence, and at this time the students do not need to run these code statements, and much time is wasted if the displayed entered code instructions are still run from the beginning.

Therefore, in the present application, the student client may receive a code sentence selection operation input by the student, and acquire second code sentence selection information based on the received code sentence selection operation. For example, a student may click on two code statements, "d.picture (" 1.png ")" and "d.firmware ()" according to own needs, at this time, the student client acquires the second code statement selection information, and may select two code statements, "d.picture (" 1.png ")" and "d.firmware ()" as code execution statements from the displayed entered code instructions according to the second code statement selection information. In actual operation, code statements before the code statement of 'd.picture (' 1.png ')' can be directly skipped, and the code statement of 'd.picture (' 1.png ')' is directly operated, and cartoon images corresponding to the code statement of 'd.picture (' 1.png ')' are displayed in real time; next, it is also possible to directly skip all code sentences between the two code sentences of "d.picture (" 1.png ")" and "d.fire ()", directly run the code sentence of "d.fire ()", and display the firework effect corresponding to the code sentence of "d.fire ()" in real time. Therefore, the student can select at least one code statement as a code running statement from the displayed recorded code instructions according to the self requirement, the selected multiple code statements can be adjacent code statements and also can be nonadjacent code statements, then the student client can directly run at least one code running statement selected by the student, and the flexibility of running the code statements is better. Moreover, whether the code sentence to be verified is correct or not can be quickly checked by the student conveniently, and compared with a mode that all the displayed code instructions which are recorded are operated from the beginning, the code sentence verifying method and the code sentence verifying device can save time and are high in verifying efficiency when the code sentence is verified.

In some embodiments, prior to the step of receiving a code run request, the method further comprises:

receiving voice data sent by a server, wherein the voice data is obtained by a teacher client based on collected programming teaching voice;

converting the voice data into text information;

displaying the text information;

and receiving the code instruction input by the student according to the text information.

In the specific implementation process, it should be noted that, in the course of a teacher giving a lecture, if the speech speed is fast or the pronunciation is not standard, the student may not understand the lecture, which may result in not following the lecture progress of the teacher.

Therefore, the student client can also receive voice data sent by the server. The voice data is obtained by the teacher client based on the collected programming teaching voice of the teacher. The voice data can be voice data for teachers to explain the contents of the lessons, voice data for explaining titles and the like. Next, the student client may convert the voice data sent by the server into text information and display the text information. Then, the student client can receive the code instruction input by the student according to the text information. Therefore, the programmed teaching voice of the teacher can be converted into the text and displayed, and the students can timely understand the teaching content of the teacher by combining the displayed text and the voice of the teacher, for example, if the teacher dictates a title and the students do not remember the content of the title, the students can not answer the title or need the teacher to repeat the title. By adopting the scheme of the invention, the questions dictated by the teacher can be converted into characters and displayed, and the students can know the question contents in time by combining the displayed characters and the teacher's voice, thereby ensuring that the students can follow the teaching progress of the teacher in time.

In some embodiments, the displaying the textual information includes:

detecting whether the text information contains a first keyword and a second keyword;

under the condition that the text information is detected to contain the first keyword and the second keyword, displaying part of the text information between the first keyword and the second keyword in the text information;

the receiving of the code instruction entered by the student according to the text information includes:

and receiving the code instruction input by the student according to the partial text information.

In this embodiment, it should be noted that the teacher's programmed instructional voice may not be all related to the lesson content. For example, as mentioned above, the voice data may be voice data of a joke spoken by a teacher in order to activate the classroom atmosphere, and text information converted from the voice data is not necessarily displayed to students.

Therefore, the student client can also detect whether the text information converted from the voice data contains the first keyword and the second keyword. For example, a teacher during a lecture may say "do one next question if he wants to arrange the questions, the questions are as follows: an addition function is implemented. Timing start/start question bar ". Therefore, it is possible to set "title" as the first keyword in advance, and set "time counting start" or "start to do title" as the second keyword.

Next, in a case where it is detected that the text information includes the first keyword and the second keyword, that is, in a case where it is detected that the text information includes "title" and "timing start"/"start to do title", it may be determined that the teacher has arranged a title, and at this time, a part of the text information located between the first keyword and the second keyword in the text information may be displayed, that is, specific title information located between "title" and "timing start"/"start to do title" in the text information may be displayed. Then, the student client can receive the code instruction input by the student according to part of the text information, namely, the student client can receive the code instruction input by the student according to the specific subject information. Therefore, the text information converted from the voice data of the explanation title can be displayed without displaying all the text information converted from the voice data, so that students can capture the key information in the live broadcast teaching process more easily. Furthermore, text information converted from voice data irrelevant to course content, such as voice data of the humorous joke spoken for activating classroom atmosphere, is filtered and not displayed, so that display resources of the student client can be saved.

In some embodiments, the method further comprises:

uploading the partial text information to the server;

and receiving a programming prompt returned by the server, wherein the programming prompt is obtained by comparing the partial text information with questions in a pre-stored question bank by the server and corresponds to target questions matched with the partial text information.

In the specific implementation process, the student client can upload part of the text information to the server, namely, the student client can upload the specific subject information in the text form converted from the voice data of the teacher to the server. Next, the student client may receive a programming prompt returned by the server. The programming prompt is a programming prompt corresponding to a target topic matched with partial character information and obtained after the server compares the partial character information with topics in a pre-stored topic library, namely the programming prompt is a programming prompt corresponding to a target topic matched with specific topic information in a character form and obtained after the server compares the specific topic information in the character form with topics in the pre-stored topic library. The target topic in the pre-stored topic library can be the same topic as the specific topic information, and can also be the same topic as the specific topic information. Therefore, the students can be inspired by the programming prompts corresponding to the target questions matched with part of the text information, so that the students can enter the code instructions according to the programming prompts when the students do not have the thought of solving the questions, and the efficiency of entering the code instructions is improved.

In some embodiments, in step 103, further comprising:

and marking and displaying the target code statement by using a target display mode corresponding to the target specific interactive function.

In the specific implementation process, the student client can also mark and display the target code statement by using a target display mode corresponding to the target specific interaction function. For example, the display mode corresponding to the movement function of the control cartoon robot can be a red mark mode; the display mode corresponding to the audio playing function can be a green marking mode; the display mode corresponding to the function of displaying the electronic greeting card can be a yellow mark mode and the like. Therefore, different specific interaction functions can correspond to different display modes, one section of code instruction can realize a plurality of specific interaction functions, at the moment, the code instruction can be operated in a running process, target code sentences in a plurality of code sentences corresponding to different specific interaction functions are marked and displayed in different display modes, students can timely know that the running position of the code jumps from one specific interaction function to another specific interaction function according to the change of the display modes, the students can timely conveniently master the action and effect of each part of code in a targeted manner, and the teaching effect is good.

In some embodiments, in step 103, further comprising:

marking and displaying the target code statement;

highlighting target parameters in the target code statement.

In the specific implementation process, the student client can also mark and display the target code statement and highlight the target parameters in the target code statement. For example, the student client may mark the loop statement currently executed by the client in the display code instructions and highlight the loop parameters in the loop statement. Therefore, when the target code statement is marked and displayed by the student client, the target parameters in the target code statement can be highlighted, so that the student can catch the key information in the target code statement in time, and the verification efficiency of the student on the target code statement can be improved.

According to the technical scheme, the information display method of the programming interface provided by the embodiment of the invention receives a code operation request; executing code instructions of the programming interface display in response to the code execution request, wherein the code instructions comprise code statements corresponding to at least one specific interactive function; and marking and displaying the target code statement executed by the client currently in the code instruction, and displaying the running result corresponding to the target code statement. Therefore, the target code sentences currently executed by the client in the code instructions can be marked and displayed, the running results corresponding to the target code sentences are displayed, the currently executed code sentences can be clearly displayed, and students can conveniently learn or edit the code sentences. The reason for editing is probably that errors exist in target code sentences, so that students can conveniently master the action and effect of each part of codes, and the teaching effect is good.

Referring to fig. 7, fig. 7 is a structural diagram of a student client according to an embodiment of the present invention. As shown in fig. 7, the student client includes a receiving module 701, an execution module 702, and a mark display module 703, wherein:

a receiving module 701, configured to receive a code running request;

an execution module 702, configured to execute the code instructions displayed by the programming interface in response to the code execution request, where the code instructions include a code statement corresponding to at least one specific interactive function;

and a mark display module 703, configured to mark and display a target code statement currently executed by the client in the code instruction, and display an operation result corresponding to the target code statement.

The student client can implement each process implemented by the student client in the method embodiment of fig. 1, and is not described herein again to avoid repetition. And the student client can mark and display the target code sentence currently executed by the client in the code instruction, and display the running result corresponding to the target code sentence, so that the currently executed code sentences can be clearly displayed, and the student can conveniently learn or edit the code sentences. The reason for editing is probably that errors exist in target code sentences, so that students can conveniently master the action and effect of each part of codes, and the teaching effect is good.

An embodiment of the present invention provides a storage medium having a program stored thereon, where the program, when executed by a processor, implements an information presentation method for a programming interface.

The embodiment of the invention provides a processor, which is used for running a program, wherein the information display method of a programming interface is executed when the program runs.

An embodiment of the present invention provides a device 80, as shown in fig. 8, the device includes at least one processor 801, at least one memory 802 connected to the processor, and a bus 803; the processor 801 and the memory 802 complete communication with each other through the bus 803; the processor 801 is configured to call the program instructions in the memory to execute the information presentation method of the programming interface.

The device herein may be a server, a PC, a PAD, a mobile phone, etc.

The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a flow management device: receiving a code operation request; executing code instructions of the programming interface display in response to the code execution request, wherein the code instructions comprise code statements corresponding to at least one specific interactive function; and marking and displaying the target code statement executed by the client currently in the code instruction, and displaying the running result corresponding to the target code statement.

Further, before the step of receiving a code running request, the method further comprises:

receiving a first code sentence selection request for the code instruction;

determining first code sentence selection information in response to the first code sentence selection request;

the code instructions displayed by the programming interface are executed in response to the code execution request, and the code instructions comprise:

and responding to the code operation request, and determining that a starting code statement starts to operate in the code instruction displayed on the programming interface according to the first code statement selection information.

Further, the determining, in response to the code execution request, that a start code statement starts to execute in the code instruction displayed on the programming interface according to the first code statement selection information includes:

responding to the code running request, and determining that the starting code statement starts to run in a code instruction displayed on the programming interface according to the first code statement selection information;

determining at least one specific interactive function to which a sub-function corresponding to the starting code statement belongs, wherein each specific interactive function corresponds to a plurality of code statements;

matching the at least one specific interactive function with a related code statement of the starting code statement, and determining a target specific interactive function in the at least one specific interactive function;

and taking an end code statement in the plurality of code statements which are arranged in sequence and correspond to the target specific interactive function as an end code statement of code operation.

Further, before the step of receiving a code running request, the method further comprises:

receiving a second code sentence selection request for the code instruction;

determining second code sentence selection information in response to the second code sentence selection request;

the code instructions displayed by the programming interface are executed in response to the code execution request, and the code instructions comprise:

and responding to the code running request, and running a second code statement indicated by the second code statement selection information in the code instruction.

Further, before the step of receiving a code running request, the method further comprises:

receiving voice data sent by a server, wherein the voice data is obtained by a teacher client based on collected programming teaching voice;

converting the voice data into text information;

displaying the text information;

and receiving the code instruction input by the student according to the text information.

Further, the displaying the text information includes:

detecting whether the text information contains a first keyword and a second keyword;

under the condition that the text information is detected to contain the first keyword and the second keyword, displaying part of the text information between the first keyword and the second keyword in the text information;

the receiving of the code instruction entered by the student according to the text information includes:

and receiving the code instruction input by the student according to the partial text information.

Further, the method further comprises:

uploading the partial text information to the server;

and receiving a programming prompt returned by the server, wherein the programming prompt is obtained by comparing the partial text information with questions in a pre-stored question bank by the server and corresponds to target questions matched with the partial text information.

Further, the marking displays the target code statement currently executed by the client in the code instruction, including:

and marking and displaying the target code statement by using a target display mode corresponding to the target specific interactive function.

Further, the marking displays the target code statement currently executed by the client in the code instruction, including:

marking and displaying the target code statement;

highlighting target parameters in the target code statement.

The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable flow management apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable flow management apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.

The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.

Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.

It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.

As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:一种用于法律教育的教学实训装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!