WO2023279699A1 - Experiment generation methods and apparatus, electronic device, storage medium and program - Google Patents

Experiment generation methods and apparatus, electronic device, storage medium and program Download PDF

Info

Publication number
WO2023279699A1
WO2023279699A1 PCT/CN2022/072514 CN2022072514W WO2023279699A1 WO 2023279699 A1 WO2023279699 A1 WO 2023279699A1 CN 2022072514 W CN2022072514 W CN 2022072514W WO 2023279699 A1 WO2023279699 A1 WO 2023279699A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
project
course
experiment
item
Prior art date
Application number
PCT/CN2022/072514
Other languages
French (fr)
Chinese (zh)
Inventor
邹雨竹
耿胜红
骆蓓
杨金
Original Assignee
上海商汤智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海商汤智能科技有限公司 filed Critical 上海商汤智能科技有限公司
Publication of WO2023279699A1 publication Critical patent/WO2023279699A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B19/00Teaching not covered by other main groups of this subclass
    • G09B19/0053Computers, e.g. programming
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B5/00Electrically-operated educational appliances
    • G09B5/02Electrically-operated educational appliances with visual presentation of the material to be studied, e.g. using film strip

Definitions

  • the present disclosure relates to the field of computer technology, in particular to an experiment generation method and device, electronic equipment, storage media and programs.
  • online education has become an important part of K12 education, higher education and vocational education.
  • course experiments that can be used in teaching and practice are important teaching contents in online education courses.
  • the teaching staff of online education may write some small applications and small projects, such as Python programming projects, artificial intelligence AI programming small projects, open source hardware programming small applications, etc. When converting these small applications and small projects into experiments available for teaching, teaching staff need to manually reorganize and write.
  • the present disclosure proposes a technical solution for experiment generation.
  • an experiment generation method is provided, which is applied to a first electronic device, including:
  • the target course includes at least one course experiment; in response to the reference operation for the target project, generate the experimental content of the target project according to the experiment label of the target project, and the experiment label is used for Indicating the content to be written in the course experiment; associating the experimental content of the target project with the target course to obtain the at least one course experiment.
  • an experiment generation method is provided, which is applied to a second electronic device, including:
  • the target course including at least one course experiment
  • an experiment generation request is sent to the first electronic device, so that the first electronic device generates a course experiment associated with the target course, and the target item includes an experiment label , the experiment label is used to indicate the content to be written in the experiment of the course.
  • an experiment generating device which is applied to a first electronic device, including:
  • a course acquisition module configured to acquire a target course to be produced, the target course including at least one course experiment
  • the content generation module is configured to generate the experimental content of the target project according to the experimental label of the target project in response to the reference operation for the target project, and the experimental label is configured to indicate the content to be written in the course experiment;
  • the experiment association module is configured to associate the experiment content of the target project with the target course, so as to obtain the at least one course experiment.
  • an experiment generation method is provided, which is applied to the second electronic device, including:
  • the target course including at least one course experiment
  • an experiment generation request is sent to the first electronic device, so that the first electronic device generates a course experiment associated with the target course, and the target item includes an experiment label , the experiment label is used to indicate the content to be written in the experiment of the course.
  • an experiment generating device which is applied to the second electronic device, including:
  • the course display module is configured to display the target course to be made, and the target course includes at least one course experiment;
  • An item selection module configured to display at least one item to be selected when the item reference control is triggered
  • the request sending module is configured to send an experiment generation request to the first electronic device according to the selected target item in the at least one item, so that the first electronic device generates a course experiment associated with the target course, so
  • the target item includes an experiment label configured to indicate content to be authored in a course experiment.
  • an electronic device including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.
  • a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor.
  • an embodiment of the present disclosure provides a computer program, including computer readable code, when the computer readable code is run in an electronic device, a processor in the electronic device executes any one of the above A method for generating experiments.
  • the project can be referenced when making the course
  • the experimental content can be generated according to the experimental label of the project
  • the experimental content can be associated with the course
  • the course experiment of the course can be obtained, thereby improving the production efficiency of the course experiment and improving user experience. Ease of use.
  • FIG. 1 shows a flowchart of an experiment generation method of an embodiment of the present disclosure.
  • Fig. 2 shows a schematic diagram of the course experiment generation and use process of the embodiment of the present disclosure.
  • Fig. 3 shows a schematic diagram of the course experiment generation process of the embodiment of the present disclosure.
  • FIG. 4 shows a flowchart of an experiment generation method of an embodiment of the present disclosure.
  • FIG. 5 shows a block diagram of an experiment generation device of an embodiment of the present disclosure.
  • FIG. 6 shows a block diagram of an experiment generation device of an embodiment of the present disclosure.
  • Fig. 7 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
  • Fig. 8 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
  • a course can refer to: an electronic teaching content composed of a group of lessons and a certain teaching system, for learners to study multiple times within a period of time (for example, one month, one semester).
  • Lesson can refer to: electronic teaching content consisting of lesson content (for example, a set of rich text content), teaching resources (for example, PPT, Word documents, videos, etc.), course experiments (for example, programming experiments), homework, etc. , for learners to study in a class.
  • the experiment generation method of the embodiment of the present disclosure can provide a course experiment self-production mode suitable for the online education platform, so that the projects (for example, programming projects) created by the teacher user group on the platform can be easily and efficiently converted into Course experiments for students to practice; student user groups can learn and practice based on these self-produced course experiments.
  • the projects for example, programming projects
  • the disclosed embodiments can improve the production efficiency of course experiments, improve the convenience and enthusiasm of users, and help enrich the teaching experiment resources on the platform, thereby gradually forming a platform-based teaching content ecology.
  • the experiment generating method of the embodiment of the present disclosure may be applied to a first electronic device, and the first electronic device may be a server, such as a cloud server.
  • the method can be implemented by a processor invoking computer-readable instructions stored in a memory.
  • the method for generating experiments in the embodiments of the present disclosure may be applied to an online education platform, that is, an online education platform based on an online network, and the online education platform may, for example, run on a cloud server.
  • Educational and research personnel can log in to the platform through clients on electronic devices (such as mobile phones, tablet computers, personal computers, PCs, etc.), and create, modify, and maintain online education courses on the platform; learning personnel (such as students) can Log in to the platform through the client, obtain and learn online education courses on the platform.
  • the experiment generation method provided by the embodiments of the present disclosure can quickly convert the course items created by the education teaching and research team into course experiments, and combine the course experiments with the knowledge system of the course items to form complete teaching content.
  • the complexity of generating course experiments is reduced, and the generation efficiency of course experiments is improved.
  • Fig. 1 shows the flowchart of the experiment generation method of the embodiment of the present disclosure, as shown in Fig. 1, the experiment generation method includes:
  • step S11 the target course to be produced is obtained, and the target course includes at least one course experiment;
  • step S12 in response to the reference operation for the target project, the experimental content of the target project is generated according to the experimental label of the target project, and the experimental label is used to indicate the content to be written in the course experiment;
  • step S13 associating the experimental content of the target project with the target course to obtain the at least one course experiment.
  • a course may be composed of a group of lessons and electronic teaching content with a certain teaching system.
  • a lesson can be an electronic teaching content composed of a set of rich text content, teaching resources, programming experiments, and homework.
  • the course experiment can be a project entity that students conduct hands-on operations on the platform after learning theoretical knowledge.
  • the type of course experiment can include any of the following: Python programming experiment, building block programming experiment, AI programming experiment, open Hardware programming experiment.
  • education and research personnel can log in to a first electronic device (for example, an online education platform) through a client, and create a project (for example, a programming project) on the first electronic device to implement certain functions, such as Face recognition function.
  • a project for example, a programming project
  • an experiment label can be defined to indicate the content to be written in the course experiment.
  • the experimental label can use the annotation code defined by the programming language, which is universal and will not affect the normal project debugging process.
  • the present disclosure does not limit the contents and description methods of the experiment label.
  • the education and research personnel may debug the project after writing the project, and store the debugged project on the first electronic device.
  • the experiment label can be added to the project first, and then the debugging can be performed; the experiment label can also be added to the project after debugging, which is not limited in the present disclosure.
  • the first electronic device can obtain the target course to be made, and the target course includes, for example, a Python programming course, a building block programming course, an artificial intelligence AI programming course, etc. Any one of the courses, the present disclosure does not limit the content of the target courses.
  • the target course may include at least one course experiment.
  • the target course may also include lesson content, teaching resources, homework, etc., which is not limited in the present disclosure.
  • the user wants to introduce an item into the target course as a course experiment of the target course, he can click the item reference control to trigger the item reference operation, so that the first electronic device obtains the reference to be selected project.
  • reference items to be selected such as items created by the user, items produced by the first electronic device, items disclosed by other users, or items shared on the platform, etc., the disclosure does not limit the source of the items.
  • the experimental content of the target item may be generated according to the experimental label of the target item.
  • the project contents of the target project include:
  • the experimental tags are: ⁇ EDU-TAG:Coding Starts ⁇ and ⁇ EDU-TAG:Coding Ends ⁇ , according to the experimental tags, the content to be written in the experimental content can be automatically removed, and the experimental content of the target project can be obtained, including:
  • the experimental content of the target project may be associated with the target course, so as to obtain the at least one course experiment. That is, the experimental content of the target project is used as the course experiment of the target course.
  • the course experiment of the target course When subsequent students study the target course, they can trigger the course experiment to achieve hands-on practice; when the course experiment of the target course is triggered, the above experiment content can be displayed for students to input code and debug, and complete the course experiment.
  • the embodiment of the present disclosure can refer to the project when making the course, generate the experimental content according to the experimental label of the project, associate the experimental content with the course, and obtain the course experiment of the course, thereby improving the production efficiency of the course experiment and improving the user experience. convenience.
  • the user may log in to the first electronic device (online education platform) through the client, and create a project (for example, a programming project) on the first electronic device.
  • a project for example, a programming project
  • the experiment generating method of the embodiment of the present disclosure may further include:
  • the project content of the current project version of the target project is determined.
  • the user when the user wants to create an item, he can trigger the item creation control, such as clicking the item creation button; the first electronic device can create an item (called a target item) in response to the user's item creation operation, and The editing interface of the target project is displayed on the display interface of the terminal; the user can input content (such as code), add project files (such as code files or comment files) or import data (such as importing data sets) in the editing interface.
  • the item creation control such as clicking the item creation button
  • the first electronic device can create an item (called a target item) in response to the user's item creation operation, and
  • the editing interface of the target project is displayed on the display interface of the terminal; the user can input content (such as code), add project files (such as code files or comment files) or import data (such as importing data sets) in the editing interface.
  • the target project includes, for example, a programming project, and the present disclosure does not limit the specific type of the target project.
  • the first electronic device may debug the user's input content to obtain debugged input content, where the debugged input content includes an experiment label.
  • the user can add experimental tags to the input content before debugging, or add experimental tags to the input content after debugging, which is not limited in this disclosure.
  • the debugged input content may be determined as the project content of the current project version of the target project, thereby completing the project creation process.
  • the user in the subsequent processing, can modify the project content of the current project version and debug again; it can also create a new project version in the target project, re-enter the content or modify the previous project content And debug to get the new version of the project content.
  • the target item may include at least one version of the item content, and the present disclosure does not limit the number of versions of the item.
  • the creation process of the project can be implemented for subsequent reference; moreover, the project includes different versions of the design, which is beneficial for users to maintain themselves, and is also conducive to meeting the reference requirements of subsequent teaching courses at different stages. Thereby further improving the production efficiency of course experiments.
  • the reference operation can be triggered, such as clicking the control of the reference project, so that the first An electronic device acquires referenced items to be selected, such as items created by the user, items produced by the first electronic device, or items disclosed by other users, etc.
  • the disclosure does not limit the source of the items.
  • the experimental content of the target item may be generated according to the experimental label of the target item.
  • step S12 may include:
  • the project snapshot is converted to generate the experiment content of the target project.
  • the platform can automatically generate a project snapshot based on the existing project status of the target project.
  • a snapshot may refer to a state record at a certain moment of data storage.
  • the process of generating a project snapshot is to record the data (for example, project content) in the current project state of the target project in a file, and the file is called a project snapshot.
  • the present disclosure does not limit the specific method of generating project snapshots.
  • the experimental content of the target project can be generated based on the project snapshot.
  • the process of converting the target project into a course experiment does not affect the target project and the version history of the target project, which improves the convenience for users.
  • the user can create a new project version in the target project, re-enter the content or modify the previous project content and debug to obtain the new version of the project content.
  • the target project may include at least one project version.
  • various versions of the items may also be provided, and the user may select a certain version of the item for reference.
  • the step of generating the project snapshot of the target project may include:
  • the project version of the target project selected by the user can be used as the project version referenced in the target project; and then a project snapshot is generated according to the project content of the project version.
  • the step of converting the project snapshot according to the experimental label of the target project to generate the experimental content of the target project may include:
  • experiment tag remove the content to be written corresponding to the experiment tag from the project snapshot to generate an experiment snapshot; according to the experiment snapshot, generate the experiment content of the target project.
  • the content to be written in the project snapshot can be removed to obtain the experimental snapshot of the target project.
  • the experimental tags ⁇ EDU-TAG:Coding Starts ⁇ and ⁇ EDU-TAG:Coding Ends ⁇ the actual code content in the programming project is removed from the file of the project snapshot, leaving a blank area where the actual code content is, and a The new file, called the experiment snapshot.
  • the experimental snapshot may be determined as the experimental content of the target project; or the format of the experimental snapshot may be converted to obtain the experimental content of the target project. This disclosure does not limit this.
  • the process of converting the target project into a course experiment does not affect the target project and the version history of the target project, which improves the convenience for users.
  • the experiment generation method in the embodiment of the present disclosure may further include:
  • an experiment instance is generated according to the experiment content of the course experiment; and the second electronic device is controlled to display the operation interface of the experiment instance.
  • a student user can log in to a first electronic device (eg, an online education platform) through a client on a second electronic device (eg, a mobile phone, a tablet computer, a personal computer, etc.) to learn a target course.
  • a first electronic device eg, an online education platform
  • a second electronic device eg, a mobile phone, a tablet computer, a personal computer, etc.
  • the first electronic device in response to the trigger operation for the course experiment, can generate an experiment instance for the student user according to the experiment content of the course experiment; and control the second electronic device to display the operation of the experiment instance interface. For example, display an input interface for experiment content for users to enter codes.
  • the experiment instance may be a copy of the course experiment.
  • experiment instances may be created for each student user, and the experiment instances do not affect each other.
  • Fig. 2 shows a schematic diagram of the process of creating and using course experiments according to an embodiment of the present disclosure.
  • a user for example, a teacher user
  • the target project includes five project versions: version 1 to version 5 .
  • the user when making a course, can refer to the target project, for example, select version 2 of the target project for reference.
  • the system online education platform
  • the system can generate a project snapshot of version 2 of the target project; convert the project snapshot according to the experiment label to obtain the experiment snapshot; associate the experiment snapshot with the target course as the course experiment of the target course .
  • the system can create experimental instances for each student, such as experimental instance-student 1, experimental instance-student 2, and experimental instance-student 3 in Figure 2, so that each student can conduct experiments separately, and the experimental instances are different from each other. do not affect each other.
  • the process of converting a target project into a course experiment does not affect the target project and its version history.
  • the system can create an experiment instance for each student, and the student uses the experiment instance to practice and debug to complete the experiment.
  • the entire processing process is shown as implicit, which is automatically processed by the system, and the user level does not need to pay special attention.
  • Fig. 3 shows a schematic diagram of a course experiment generation process according to an embodiment of the present disclosure.
  • the teacher user can create a project, debug the project after inputting content, and define experiment tags. Teacher users can reference this item in their courses when they create courses.
  • a project snapshot can be generated in response to the reference operation of the project; according to the experiment label, the code in the label can be removed to obtain the experiment snapshot; then the course experiment is generated, and the experiment associated with the course.
  • the course can be studied; during the learning process, the experiment is operated, the experiment is debugged, and the experiment is completed after the debugging is passed.
  • FIG. 4 shows a flowchart of an experiment generation method of an embodiment of the present disclosure. As shown in Figure 4, the experiment generation method includes:
  • step S41 the target course to be produced is displayed, and the target course includes at least one course experiment;
  • step S42 when the item reference control is triggered, at least one item to be selected is displayed;
  • step S43 according to the selected target item in the at least one item, an experiment generation request is sent to the first electronic device, so that the first electronic device generates a course experiment associated with the target course, the
  • the target item includes an experiment label, which is used to indicate the content to be written in the experiment of the course.
  • the experiment generation method may be executed by electronic equipment such as terminal equipment, and the terminal equipment may be user equipment (User Equipment, UE), mobile equipment, user terminal, terminal, cellular phone, cordless phone, For personal digital assistants (Personal Digital Assistant, PDA), handheld devices, computing devices, vehicle-mounted devices, wearable devices, etc., the method can be implemented by calling the computer-readable instructions stored in the memory by the processor.
  • the terminal equipment may be user equipment (User Equipment, UE), mobile equipment, user terminal, terminal, cellular phone, cordless phone, For personal digital assistants (Personal Digital Assistant, PDA), handheld devices, computing devices, vehicle-mounted devices, wearable devices, etc.
  • PDA Personal Digital Assistant
  • step S41 displaying the target course to be produced may include the following steps:
  • the target course to be produced is acquired based on the second electronic device accessing the first electronic device; and the target course to be produced is displayed on a display interface of the second electronic device.
  • the user may log in to the first electronic device (such as an online education platform) through a client on a second electronic device (such as a mobile phone, a tablet computer, a personal computer, etc.).
  • the target course to be made can be obtained from the first electronic device.
  • the target course to be made may be displayed on the display interface of the second electronic device.
  • the above experiment generation method may include the following steps:
  • the project reference control is used for Trigger a project reference action.
  • the second electronic device detecting the user's click operation on the item reference control, if the user's click operation on the item reference control is detected, it is determined that the item reference control is triggered.
  • step S42 when the item reference control is triggered, displaying at least one item to be selected includes:
  • At least one item to be selected is acquired from the first electronic device, and the at least one item to be selected is displayed on a display interface of the second electronic device.
  • the second electronic device may obtain at least one item to be selected from the first electronic device, and display the at least one item on the display interface of the second electronic device. An item for the user to select.
  • the above experiment generation method may include the following steps:
  • the second electronic device may send an experiment generation request to the first electronic device according to the selected target item, so that the first The electronic device generates a course experiment associated with the target course based on the target item.
  • the content of the target item includes an experiment label
  • the experiment label is used to indicate the content to be written in the course experiment.
  • the first electronic device generates a course experiment associated with the target course, which may include the following steps:
  • the first electronic device generates a project snapshot of the target project according to the project version of the target project in response to the experiment generation request sent by the second electronic device; and generates a project snapshot of the target project according to the experiment label Perform conversion to obtain an experiment snapshot; generate a course experiment associated with the target course according to the target course and the association relationship between the experiment snapshot and the target course.
  • the first electronic device can generate a project snapshot of the target project according to the project version of the target project; convert the project snapshot of the target project according to the experiment label to obtain the experiment snapshot; combine the experiment snapshot with The target course is associated, and the association relationship between the experiment snapshot and the target course is established.
  • the project is referenced when making a course, and the second electronic device is requested to generate a course experiment of the course, thereby improving the production efficiency of the course experiment and improving the convenience for users.
  • the experiment generation method of the embodiment of the present disclosure allows users to self-produce teaching experiments on the platform, and can assist users to automatically convert self-created projects into teaching experiments, improving self-production efficiency; generating course experiments based on annotation labels, without It affects users' normal debugging of project code, and enables the system to automatically generate code templates for teaching, which improves the convenience of users; through implicit version management, the interaction between the user's original project version and the experiments operated by students is reduced. At the same time, it hides the complex version management logic and improves the user experience.
  • the experiment generating method of the embodiment of the present disclosure can reduce the complexity of the teacher's self-produced teaching experiment and greatly improve the efficiency.
  • the teacher can conveniently and automatically generate the teaching experiment on the basis of writing common projects by himself.
  • the self-produced content on the platform maintains good independence among different users.
  • the projects and experiments of teachers and students are managed in a snapshot version, which does not affect the modified content.
  • the experiment generation method of the embodiment of the present disclosure can be applied to application scenarios such as artificial intelligence education platform, online programming education platform, online programming platform, artificial intelligence technology innovation platform, etc., so that the product has the production capacity of programming teaching experiments (that is, user-generated Content (User Generated Content, UGC) mode) to improve the production efficiency of course experiments.
  • programming teaching experiments that is, user-generated Content (User Generated Content, UGC) mode
  • the education and research team of a platform provider can use the platform to create Python programming projects, AI programming projects, etc.
  • the projects created by the teaching and research team can be quickly converted into teaching experiments, and combined with the knowledge system to form a complete course .
  • teaching and research teachers on the customer side can create Python programming projects, building block programming projects, hardware projects, etc. in daily lesson preparation or work, and quickly convert them into teaching experiments through platform capabilities, and apply these experiments to actual teaching middle.
  • the present disclosure also provides experiment generating devices, electronic equipment, computer-readable storage media, and programs, all of which can be used to implement any of the experiment generating methods provided in the present disclosure, corresponding technical solutions and descriptions, and corresponding records in the method section .
  • Fig. 5 shows a block diagram of an experiment generating device according to an embodiment of the present disclosure. As shown in Fig. 5, the device is applied to a first electronic device, including:
  • the course obtaining module 51 is configured to obtain the target course to be produced, and the target course includes at least one course experiment;
  • the content generation module 52 is configured to generate the experimental content of the target project according to the experimental label of the target project in response to the reference operation for the target project, and the experimental label is configured to indicate the content to be written in the course experiment;
  • the experiment association module 53 is configured to associate the experiment content of the target project with the target course, so as to obtain the at least one course experiment.
  • the content generation module includes: a project snapshot generation submodule configured to generate a project snapshot of the target project in response to a reference operation on the target project; a snapshot conversion submodule configured to The experimental label of the target project converts the project snapshot to generate the experimental content of the target project.
  • the target project includes at least one project version
  • the project snapshot generation submodule is further configured to: determine the referenced project version in the target project in response to a reference operation on the target project ; Generating a project snapshot of the target project according to the project content of the project version.
  • the snapshot conversion submodule is further configured to: remove the content to be written corresponding to the experiment label from the project snapshot according to the experiment label, and generate an experiment snapshot; The experiment snapshot is generated to generate the experiment content of the target project.
  • the device before the course obtaining module, the device further includes:
  • the project creation module is configured to create a target project in response to the project creation operation;
  • the debugging module is configured to debug the input content in the editing interface of the target project to obtain the debugged input content, and the debugged input content includes an experiment label;
  • a project content determination module configured to determine the project content of the current project version of the target project according to the debugged input content.
  • the device further includes: an example generation module configured to generate an experiment instance according to the experiment content of the course experiment in response to a trigger operation for the course experiment; an interface display module configured to The operation interface of the experimental example is shown for controlling the second electronic device.
  • the first electronic device includes an online education platform
  • the target course includes any one of Python programming courses, building block programming courses, and artificial intelligence AI programming courses
  • the target project includes programming project.
  • Fig. 6 shows a block diagram of an experiment generation device according to an embodiment of the present disclosure. As shown in Fig. 6, the device is applied to a second electronic device, including:
  • the course display module 61 is configured to display the target course to be produced, and the target course includes at least one course experiment;
  • the item selection module 62 is configured to display at least one item to be selected when the item reference control is triggered;
  • the request sending module 63 is configured to send an experiment generation request to the first electronic device according to the selected target item in the at least one item, so that the first electronic device generates a course experiment associated with the target course,
  • the target item includes an experiment label configured to indicate content to be written in a course experiment.
  • the course display module 61 is configured to display the target course to be produced, including:
  • the item display module 62 is further configured to:
  • the user's click operation on the item reference control is detected; when the user's click operation on the item reference control is detected, it is determined that the item reference control is triggered.
  • the item display module 62 is configured to display at least one item to be selected when the item reference control is triggered, including:
  • At least one item to be selected is obtained from the first electronic device, and the at least one item to be selected is displayed on the display interface of the item display module.
  • experiment generation module 63 is further configured to:
  • a selected target item among the at least one item is determined.
  • the functions or modules included in the apparatus provided by the embodiments of the present disclosure may be used to execute the methods described in the above method embodiments, and for specific implementation, refer to the descriptions of the above method embodiments.
  • Embodiments of the present disclosure also provide a computer-readable storage medium, on which computer program instructions are stored, and the above-mentioned method is implemented when the computer program instructions are executed by a processor.
  • Computer readable storage media may be volatile or nonvolatile computer readable storage media.
  • An embodiment of the present disclosure also proposes an electronic device, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.
  • An embodiment of the present disclosure also provides a computer program product, including computer-readable codes, or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are stored in a processor of an electronic device When running in the electronic device, the processor in the electronic device executes the above method.
  • electronic devices may be provided as terminals, servers, or other forms of devices.
  • FIG. 7 shows a block diagram of an electronic device 800 according to an embodiment of the present disclosure.
  • the electronic device 800 may be a terminal such as a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, or a personal digital assistant.
  • electronic device 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814 , and the communication component 816.
  • the processing component 802 generally controls the overall operations of the electronic device 800, such as those associated with display, telephone calls, data communications, camera operations, and recording operations.
  • the processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802 .
  • the memory 804 is configured to store various types of data to support operations at the electronic device 800 . Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like.
  • the memory 804 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic or Optical Disk Magnetic Disk
  • the power supply component 806 provides power to various components of the electronic device 800 .
  • Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 800 .
  • the multimedia component 808 includes a screen providing an output interface between the electronic device 800 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user.
  • the touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action.
  • the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
  • the audio component 810 is configured to output and/or input audio signals.
  • the audio component 810 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 800 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 804 or transmitted via communication component 816.
  • the audio component 810 also includes a speaker for outputting audio signals.
  • the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
  • Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of electronic device 800 .
  • the sensor component 814 can detect the open/closed state of the electronic device 800, the relative positioning of components, such as the display and the keypad of the electronic device 800, the sensor component 814 can also detect the electronic device 800 or a Changes in position of components, presence or absence of user contact with electronic device 800 , electronic device 800 orientation or acceleration/deceleration and temperature changes in electronic device 800 .
  • Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact.
  • Sensor assembly 814 may also include an optical sensor, such as a complementary metal-oxide-semiconductor (CMOS) or charge-coupled device (CCD) image sensor, for use in imaging applications.
  • CMOS complementary metal-oxide-semiconductor
  • CCD charge-coupled device
  • the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
  • the communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices.
  • the electronic device 800 can access a wireless network based on a communication standard, such as a wireless network (WiFi), a second generation mobile communication technology (2G) or a third generation mobile communication technology (3G), or a combination thereof.
  • the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication.
  • the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID Radio Frequency Identification
  • IrDA Infrared Data Association
  • UWB Ultra Wide Band
  • Bluetooth Bluetooth
  • electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the method described above.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable gate arrays
  • controller microcontroller, microprocessor, or other electronic component implementation for performing the method described above.
  • non-volatile computer-readable storage medium such as the memory 804 including computer program instructions, which can be executed by the processor 820 of the electronic device 800 to implement the above method.
  • FIG. 8 shows a block diagram of an electronic device 1900 according to an embodiment of the present disclosure.
  • electronic device 1900 may be provided as a server.
  • electronic device 1900 includes processing component 1922 , which further includes one or more processors, and a memory resource represented by memory 1932 for storing instructions executable by processing component 1922 , such as application programs.
  • the application programs stored in memory 1932 may include one or more modules each corresponding to a set of instructions.
  • the processing component 1922 is configured to execute instructions to perform the above method.
  • Electronic device 1900 may also include a power supply component 1926 configured to perform power management of electronic device 1900, a wired or wireless network interface 1950 configured to connect electronic device 1900 to a network, and an input-output (I/O) interface 1958 .
  • the electronic device 1900 can operate based on the operating system stored in the memory 1932, such as the Microsoft server operating system (Windows ServerTM), the graphical user interface-based operating system (Mac OS XTM) introduced by Apple Inc., and the multi-user and multi-process computer operating system (UnixTM). ), a free and open source Unix-like operating system (LinuxTM), an open source Unix-like operating system (FreeBSDTM), or similar.
  • non-volatile computer-readable storage medium such as the memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to implement the above-mentioned method.
  • An embodiment of the present disclosure provides a computer program product, the computer program product carries a program code, and the instructions included in the program code can be used to execute the steps of the experiment generating method in the above method embodiment, for details, refer to the above method embodiment.
  • the present disclosure can be a system, method and/or computer program product.
  • a computer program product may include a computer readable storage medium having computer readable program instructions thereon for causing a processor to implement various aspects of the present disclosure.
  • a computer readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device.
  • a computer readable storage medium may be, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • Computer-readable storage media include: portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory), static random access memory (SRAM), compact disc read only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanically encoded device, such as a printer with instructions stored thereon A hole card or a raised structure in a groove, and any suitable combination of the above.
  • RAM random access memory
  • ROM read-only memory
  • EPROM erasable programmable read-only memory
  • flash memory static random access memory
  • SRAM static random access memory
  • CD-ROM compact disc read only memory
  • DVD digital versatile disc
  • memory stick floppy disk
  • mechanically encoded device such as a printer with instructions stored thereon
  • a hole card or a raised structure in a groove and any suitable combination of the above.
  • computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., pulses of light through fiber optic cables), or transmitted electrical signals.
  • Computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or downloaded to an external computer or external storage device over a network, such as the Internet, a local area network, a wide area network, and/or a wireless network.
  • the network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
  • a network adapter card or a network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
  • Computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or Source or object code written in any combination, including object-oriented programming languages—such as Smalltalk, C++, etc., and conventional procedural programming languages—such as the “C” language or similar programming languages.
  • Computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement.
  • the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as via the Internet using an Internet service provider). connect).
  • LAN local area network
  • WAN wide area network
  • an electronic circuit such as a programmable logic circuit, field programmable gate array (FPGA), or programmable logic array (PLA)
  • FPGA field programmable gate array
  • PDA programmable logic array
  • These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine such that when executed by the processor of the computer or other programmable data processing apparatus , producing an apparatus for realizing the functions/actions specified in one or more blocks in the flowchart and/or block diagram.
  • These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause computers, programmable data processing devices and/or other devices to work in a specific way, so that the computer-readable medium storing instructions includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks in flowcharts and/or block diagrams.
  • each block in a flowchart or block diagram may represent a module, a portion of a program segment, or an instruction that includes one or more Executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.
  • the computer program product can be specifically realized by hardware, software or a combination thereof.
  • the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) etc. Wait.
  • a software development kit Software Development Kit, SDK
  • the present disclosure relates to an experiment generation method and device, electronic equipment, and a storage medium.
  • the method includes: acquiring a target course to be produced, the target course including at least one course experiment; responding to a reference operation for the target item, according to the
  • the experimental label of the target project generates the experimental content of the target project, and the experimental label is used to indicate the content to be written in the course experiment; the experimental content of the target project is associated with the target course to obtain the Describe at least one course experiment.
  • the embodiments of the present disclosure can improve the production efficiency of course experiments.

Abstract

Experiment generation methods and apparatus, an electronic device and a storage medium, a method comprising: acquiring a target course to be made, the target course comprising at least one course experiment; in response to a reference operation for a target item, generating experiment content of the target item according to an experiment label of the target item, the experiment label being used for indicating content to be written in a course experiment; and associating the experiment content of the target item with the target course so as to obtain the at least one course experiment.

Description

实验生成方法及装置、电子设备、存储介质和程序Experiment generating method and device, electronic equipment, storage medium and program
相关申请的交叉引用Cross References to Related Applications
本专利申请要求2021年07月06日提交的中国专利申请号为202110763452.5、申请人为上海商汤智能科技有限公司,申请名称为“实验生成方法及装置、电子设备和存储介质”的优先权,该申请的全文以引用的方式并入本申请中。This patent application claims the priority of the Chinese patent application number 202110763452.5 submitted on July 06, 2021, the applicant is Shanghai Shangtang Intelligent Technology Co., Ltd., and the application name is "experiment generation method and device, electronic equipment and storage medium". The entirety of the application is incorporated by reference into this application.
技术领域technical field
本公开涉及计算机技术领域,尤其涉及一种实验生成方法及装置、电子设备、存储介质和程序。The present disclosure relates to the field of computer technology, in particular to an experiment generation method and device, electronic equipment, storage media and programs.
背景技术Background technique
随着教育方式的不断发展,在线教育的方式已经成为K12教育、高等教育和职业教育等的重要组成部分。其中,能够用于教学和实践的课程实验是在线教育课程中重要的教学内容。在线教育的教学人员,可能会编写一些小应用、小项目,例如Python编程项目、人工智能AI类的编程小项目、开源硬件类的编程小应用等。在将这些小应用、小项目转换为教学可用的实验时,教学人员需要人工去重新整理和编写。With the continuous development of education methods, online education has become an important part of K12 education, higher education and vocational education. Among them, course experiments that can be used in teaching and practice are important teaching contents in online education courses. The teaching staff of online education may write some small applications and small projects, such as Python programming projects, artificial intelligence AI programming small projects, open source hardware programming small applications, etc. When converting these small applications and small projects into experiments available for teaching, teaching staff need to manually reorganize and write.
发明内容Contents of the invention
本公开提出了一种实验生成技术方案。The present disclosure proposes a technical solution for experiment generation.
第一方面,提供了一种实验生成方法,应用于第一电子设备,包括:In a first aspect, an experiment generation method is provided, which is applied to a first electronic device, including:
获取待制作的目标课程,所述目标课程包括至少一个课程实验;响应于针对目标项目的引用操作,根据所述目标项目的实验标签,生成所述目标项目的实验内容,所述实验标签用于指示课程实验中的待编写内容;将所述目标项目的实验内容与所述目标课程相关联,以得到所述至少一个课程实验。Obtain the target course to be produced, the target course includes at least one course experiment; in response to the reference operation for the target project, generate the experimental content of the target project according to the experiment label of the target project, and the experiment label is used for Indicating the content to be written in the course experiment; associating the experimental content of the target project with the target course to obtain the at least one course experiment.
第二方面,提供了实验生成方法,应用于第二电子设备,包括:In a second aspect, an experiment generation method is provided, which is applied to a second electronic device, including:
显示待制作的目标课程,所述目标课程包括至少一个课程实验;displaying a target course to be produced, the target course including at least one course experiment;
在项目引用控件被触发的情况下,显示待选择的至少一个项目;Displaying at least one item to be selected when the item reference control is triggered;
根据所述至少一个项目中被选中的目标项目,向第一电子设备发送实验生成请求,以使所述第一电子设备生成与所述目标课程相关联的课程实验,所述目标项目包括实验标签,所述实验标签用于指示课程实验中的待编写内容。According to the selected target item in the at least one item, an experiment generation request is sent to the first electronic device, so that the first electronic device generates a course experiment associated with the target course, and the target item includes an experiment label , the experiment label is used to indicate the content to be written in the experiment of the course.
第三方面,提供了一种实验生成装置,应用于第一电子设备,包括:In a third aspect, an experiment generating device is provided, which is applied to a first electronic device, including:
课程获取模块,配置为获取待制作的目标课程,所述目标课程包括至少一个课程实验;A course acquisition module configured to acquire a target course to be produced, the target course including at least one course experiment;
内容生成模块,配置为响应于针对目标项目的引用操作,根据所述目标项目的实验标签,生成所述目标项目的实验内容,所述实验标签配置为指示课程实验中的待编写内容;The content generation module is configured to generate the experimental content of the target project according to the experimental label of the target project in response to the reference operation for the target project, and the experimental label is configured to indicate the content to be written in the course experiment;
实验关联模块,配置为将所述目标项目的实验内容与所述目标课程相关联,以得到所述至少一个课程实验。The experiment association module is configured to associate the experiment content of the target project with the target course, so as to obtain the at least one course experiment.
第四方面,提供了实验生成方法,应用于第二电子设备,包括:In a fourth aspect, an experiment generation method is provided, which is applied to the second electronic device, including:
显示待制作的目标课程,所述目标课程包括至少一个课程实验;displaying a target course to be produced, the target course including at least one course experiment;
在项目引用控件被触发的情况下,显示待选择的至少一个项目;Displaying at least one item to be selected when the item reference control is triggered;
根据所述至少一个项目中被选中的目标项目,向第一电子设备发送实验生成请求,以使所述第一电子设备生成与所述目标课程相关联的课程实验,所述目标项目包括实验标签,所述实验标签用于指示课程实验中的待编写内容。According to the selected target item in the at least one item, an experiment generation request is sent to the first electronic device, so that the first electronic device generates a course experiment associated with the target course, and the target item includes an experiment label , the experiment label is used to indicate the content to be written in the experiment of the course.
第五方面,提供了一种实验生成装置,应用于第二电子设备,包括:In the fifth aspect, an experiment generating device is provided, which is applied to the second electronic device, including:
课程显示模块,配置为显示待制作的目标课程,所述目标课程包括至少一个课程实 验;The course display module is configured to display the target course to be made, and the target course includes at least one course experiment;
项目选择模块,配置为在项目引用控件被触发的情况下,显示待选择的至少一个项目;An item selection module configured to display at least one item to be selected when the item reference control is triggered;
请求发送模块,配置为根据所述至少一个项目中被选中的目标项目,向第一电子设备发送实验生成请求,以使所述第一电子设备生成与所述目标课程相关联的课程实验,所述目标项目包括实验标签,所述实验标签配置为指示课程实验中的待编写内容。The request sending module is configured to send an experiment generation request to the first electronic device according to the selected target item in the at least one item, so that the first electronic device generates a course experiment associated with the target course, so The target item includes an experiment label configured to indicate content to be authored in a course experiment.
第六方面,提供了一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为调用所述存储器存储的指令,以执行上述方法。According to a sixth aspect, an electronic device is provided, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.
第七方面,提供了一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。In a seventh aspect, a computer-readable storage medium is provided, on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor.
第八方面,本公开实施例提供了一种计算机程序,包括计算机可读代码,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行用于实现上述任意一种实验生成方法。In an eighth aspect, an embodiment of the present disclosure provides a computer program, including computer readable code, when the computer readable code is run in an electronic device, a processor in the electronic device executes any one of the above A method for generating experiments.
在本公开实施例中,能够在制作课程时对项目进行引用,根据项目的实验标签生成实验内容,将实验内容与课程相关联,得到课程的课程实验,从而提高课程实验的生产效率,提高用户使用的便利性。In the embodiment of the present disclosure, the project can be referenced when making the course, the experimental content can be generated according to the experimental label of the project, the experimental content can be associated with the course, and the course experiment of the course can be obtained, thereby improving the production efficiency of the course experiment and improving user experience. Ease of use.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。根据下面参考附图对示例性实施例的详细说明,本公开的其它特征及方面将变得清楚。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the accompanying drawings.
为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。The accompanying drawings here are incorporated into the description and constitute a part of the present description. These drawings show embodiments consistent with the present disclosure, and are used together with the description to explain the technical solution of the present disclosure.
图1示出本公开实施例的实验生成方法的流程图。FIG. 1 shows a flowchart of an experiment generation method of an embodiment of the present disclosure.
图2示出本公开实施例的课程实验生成及使用过程的示意图。Fig. 2 shows a schematic diagram of the course experiment generation and use process of the embodiment of the present disclosure.
图3示出本公开实施例的课程实验生成过程的示意图。Fig. 3 shows a schematic diagram of the course experiment generation process of the embodiment of the present disclosure.
图4示出本公开实施例的实验生成方法的流程图。FIG. 4 shows a flowchart of an experiment generation method of an embodiment of the present disclosure.
图5示出本公开实施例的实验生成装置的框图。FIG. 5 shows a block diagram of an experiment generation device of an embodiment of the present disclosure.
图6示出本公开实施例的实验生成装置的框图。FIG. 6 shows a block diagram of an experiment generation device of an embodiment of the present disclosure.
图7示出本公开实施例的一种电子设备的框图。Fig. 7 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
图8示出本公开实施例的一种电子设备的框图。Fig. 8 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
具体实施方式detailed description
以下将参考附图详细说明本公开的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。Various exemplary embodiments, features, and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numbers in the figures indicate functionally identical or similar elements. While various aspects of the embodiments are shown in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as superior or better than other embodiments.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations. In addition, the term "at least one" herein means any one of a variety or any combination of at least two of the more, for example, including at least one of A, B, and C, which may mean including from A, Any one or more elements selected from the set formed by B and C.
另外,为了更好地说明本公开,在下文的具体实施方式中给出了众多的具体细节。 本领域技术人员应当理解,没有某些具体细节,本公开同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本公开的主旨。In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific implementation manners. It will be understood by those skilled in the art that the present disclosure may be practiced without some of the specific details. In some instances, methods, means, components and circuits that are well known to those skilled in the art have not been described in detail so as to obscure the gist of the present disclosure.
在线教育平台上,课程可以指:由一组课节组成的、具有一定教学体系的电子化教学内容,供学习人员在一段时间(例如,一个月、一学期)内多次进行学习。课节可以指:由课节内容(例如,一组富文本内容)、教学资源(例如,PPT、Word文档、视频等)、课程实验(例如,编程实验)、作业等组成的电子化教学内容,供学习人员在一节课中进行学习。On the online education platform, a course can refer to: an electronic teaching content composed of a group of lessons and a certain teaching system, for learners to study multiple times within a period of time (for example, one month, one semester). Lesson can refer to: electronic teaching content consisting of lesson content (for example, a set of rich text content), teaching resources (for example, PPT, Word documents, videos, etc.), course experiments (for example, programming experiments), homework, etc. , for learners to study in a class.
本公开实施例的实验生成方法,能够提供一种适用于在线教育平台的课程实验自生产模式,使得教师用户群在平台上创作的项目(例如,编程类项目),能够简单高效地转换为可供学生实践操作的课程实验;学生用户群可以基于这些自生产的课程实验进行学习和动手实践。The experiment generation method of the embodiment of the present disclosure can provide a course experiment self-production mode suitable for the online education platform, so that the projects (for example, programming projects) created by the teacher user group on the platform can be easily and efficiently converted into Course experiments for students to practice; student user groups can learn and practice based on these self-produced course experiments.
本公开实施例,能够提高课程实验的生产效率,提高用户使用的便利性和积极性,有助于丰富平台上的教学实验资源,从而逐步形成基于平台的教学内容生态。The disclosed embodiments can improve the production efficiency of course experiments, improve the convenience and enthusiasm of users, and help enrich the teaching experiment resources on the platform, thereby gradually forming a platform-based teaching content ecology.
在一种可能的实现方式中,本公开实施例的实验生成方法可应用于第一电子设备,第一电子设备可为服务器,例如云端服务器。所述方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。In a possible implementation manner, the experiment generating method of the embodiment of the present disclosure may be applied to a first electronic device, and the first electronic device may be a server, such as a cloud server. The method can be implemented by a processor invoking computer-readable instructions stored in a memory.
在一种可能的实现方式中,本公开实施例的实验生成方法可应用于在线教育平台,即基于在线网络的教育平台,在线教育平台可例如运行于云端服务器中。教育教研人员可通过电子设备(例如,手机、平板电脑、个人电脑PC等)上的客户端登录该平台,在平台上创建、修改、维护在线教育的课程等;学习人员(例如,学生)可通过客户端登录该平台,获取平台上的在线教育课程并学习。In a possible implementation manner, the method for generating experiments in the embodiments of the present disclosure may be applied to an online education platform, that is, an online education platform based on an online network, and the online education platform may, for example, run on a cloud server. Educational and research personnel can log in to the platform through clients on electronic devices (such as mobile phones, tablet computers, personal computers, PCs, etc.), and create, modify, and maintain online education courses on the platform; learning personnel (such as students) can Log in to the platform through the client, obtain and learn online education courses on the platform.
本公开实施例提供的实验生成方法,可以快速将教育教研团队创建的课程项目转换为课程实验,将课程实验和课程项目的知识体系结合起来形成完整的教学内容。降低了生成课程实验的复杂度,提升课程实验的生成效率。The experiment generation method provided by the embodiments of the present disclosure can quickly convert the course items created by the education teaching and research team into course experiments, and combine the course experiments with the knowledge system of the course items to form complete teaching content. The complexity of generating course experiments is reduced, and the generation efficiency of course experiments is improved.
以下,对本公开实施例提供的实验生成方法进行详细介绍。Hereinafter, the method for generating experiments provided by the embodiments of the present disclosure will be described in detail.
图1示出本公开实施例的实验生成方法的流程图,如图1所示,所述实验生成方法包括:Fig. 1 shows the flowchart of the experiment generation method of the embodiment of the present disclosure, as shown in Fig. 1, the experiment generation method includes:
在步骤S11中,获取待制作的目标课程,所述目标课程包括至少一个课程实验;In step S11, the target course to be produced is obtained, and the target course includes at least one course experiment;
在步骤S12中,响应于针对目标项目的引用操作,根据所述目标项目的实验标签,生成所述目标项目的实验内容,所述实验标签用于指示课程实验中的待编写内容;In step S12, in response to the reference operation for the target project, the experimental content of the target project is generated according to the experimental label of the target project, and the experimental label is used to indicate the content to be written in the course experiment;
在步骤S13中,将所述目标项目的实验内容与所述目标课程相关联,以得到所述至少一个课程实验。In step S13, associating the experimental content of the target project with the target course to obtain the at least one course experiment.
在示例中,在线教育平台上,课程可以是由一组课节组成的、具有一定教学体系的电子化教学内容。课节可以是由一组富文本内容、教学资源、编程实验、作业组成的电子化教学内容。In an example, on the online education platform, a course may be composed of a group of lessons and electronic teaching content with a certain teaching system. A lesson can be an electronic teaching content composed of a set of rich text content, teaching resources, programming experiments, and homework.
在示例中,课程实验可以是学生进行理论知识的学习后,在平台上进行动手操作的项目实体,课程实验的类型可以包括以下任一项:Python编程实验、积木编程实验、AI编程实验、开放硬件编程实验。In the example, the course experiment can be a project entity that students conduct hands-on operations on the platform after learning theoretical knowledge. The type of course experiment can include any of the following: Python programming experiment, building block programming experiment, AI programming experiment, open Hardware programming experiment.
在示例中,教育教研人员可通过客户端登录到第一电子设备(例如,在线教育平台),在该第一电子设备上创建项目(例如,编程类项目),用于实现某些功能,例如人脸识别功能。在编写项目时,可定义有实验标签,用于指示课程实验中的待编写内容。In an example, education and research personnel can log in to a first electronic device (for example, an online education platform) through a client, and create a project (for example, a programming project) on the first electronic device to implement certain functions, such as Face recognition function. When writing a project, an experiment label can be defined to indicate the content to be written in the course experiment.
例如,在某个Python项目中,通过Python注释“请学生定义优化器”,同时使用预定义的实验标签“{EDU-TAG:Coding Starts}”和“{EDU-TAG:Coding Ends}”来限定待编写内容,即表明实验标签内的代码是学生未来操作实验时,需要自行编写的代码。For example, in a Python project, use the Python annotation "Ask students to define an optimizer" while using the predefined experiment tags "{EDU-TAG:Coding Starts}" and "{EDU-TAG:Coding Ends}" to qualify The content to be written means that the code in the experiment label is the code that students need to write when they operate the experiment in the future.
在一种可能的实现方式中,实验标签可使用编程语言定义的注释代码,具有普适性,不会影响正常的项目调试过程。本公开对实验标签的内容及描述方式均不作限制。In a possible implementation manner, the experimental label can use the annotation code defined by the programming language, which is universal and will not affect the normal project debugging process. The present disclosure does not limit the contents and description methods of the experiment label.
在一种可能的实现方式中,教育教研人员可在完成该项目的编写后进行调试,并将调试后的项目存储在第一电子设备上。应当理解,可先在项目中添加实验标签,再进行调试;也可在调试后再在项目中添加实验标签,本公开对此不作限制。In a possible implementation manner, the education and research personnel may debug the project after writing the project, and store the debugged project on the first electronic device. It should be understood that the experiment label can be added to the project first, and then the debugging can be performed; the experiment label can also be added to the project after debugging, which is not limited in the present disclosure.
在一种可能的实现方式中,当用户(例如,教育教研人员)制作课程时,第一电子设备可获取待制作的目标课程,目标课程例如包括Python编程课程、积木编程课程、人工智能AI编程课程中的任意一种,本公开对目标课程的内容不作限制。In a possible implementation, when a user (for example, education and research personnel) makes a course, the first electronic device can obtain the target course to be made, and the target course includes, for example, a Python programming course, a building block programming course, an artificial intelligence AI programming course, etc. Any one of the courses, the present disclosure does not limit the content of the target courses.
在一种可能的实现方式中,该目标课程可包括至少一个课程实验。并且,该目标课程还可包括课节内容、教学资源、作业等,本公开对此不作限制。In a possible implementation manner, the target course may include at least one course experiment. Moreover, the target course may also include lesson content, teaching resources, homework, etc., which is not limited in the present disclosure.
在一种可能的实现方式中,如果用户想要向该目标课程引入项目作为该目标课程的课程实验,则可点击项目引用控件,触发项目引用操作,以使第一电子设备获取待选择的引用项目。In a possible implementation, if the user wants to introduce an item into the target course as a course experiment of the target course, he can click the item reference control to trigger the item reference operation, so that the first electronic device obtains the reference to be selected project.
在示例中,待选择的引用项目,例如用户自己创建的项目、第一电子设备上自生产的项目、其他用户公开的项目或平台上共享的项目等,本公开对项目的来源不作限制。In the example, reference items to be selected, such as items created by the user, items produced by the first electronic device, items disclosed by other users, or items shared on the platform, etc., the disclosure does not limit the source of the items.
在一种可能的实现方式中,响应于针对被选中的项目(称为目标项目)的引用操作,可在步骤S12中,根据目标项目的实验标签,生成目标项目的实验内容。In a possible implementation manner, in response to the reference operation on the selected item (called the target item), in step S12, the experimental content of the target item may be generated according to the experimental label of the target item.
例如,目标项目的项目内容包括:For example, the project contents of the target project include:
#请学生定义优化器#Ask the students to define the optimizer
#{EDU-TAG:Coding Starts}#{EDU-TAG:Coding Starts}
……(实际代码内容)... (actual code content)
#{EDU-TAG:Coding Ends}#{EDU-TAG:Coding Ends}
其中,实验标签为:{EDU-TAG:Coding Starts}和{EDU-TAG:Coding Ends},可根据该实验标签,自动去除实验内容中的待编写内容,得到目标项目的实验内容,包括:Among them, the experimental tags are: {EDU-TAG:Coding Starts} and {EDU-TAG:Coding Ends}, according to the experimental tags, the content to be written in the experimental content can be automatically removed, and the experimental content of the target project can be obtained, including:
#请学生定义优化器#Ask the students to define the optimizer
#{请在此输入代码}#{Please enter the code here}
(空白)(blank)
#{代码结束}#{end of code}
在一种可能的实现方式中,在步骤S13中,可将目标项目的实验内容与目标课程相关联,以得到所述至少一个课程实验。即,将该目标项目的实验内容作为目标课程的课程实验。后续学生在学习该目标课程时,可触发课程实验以便实现动手实践;在目标课程的该课程实验被触发时,可显示上面的实验内容,以供学生输入代码并进行调试,从完成课程实验。In a possible implementation manner, in step S13, the experimental content of the target project may be associated with the target course, so as to obtain the at least one course experiment. That is, the experimental content of the target project is used as the course experiment of the target course. When subsequent students study the target course, they can trigger the course experiment to achieve hands-on practice; when the course experiment of the target course is triggered, the above experiment content can be displayed for students to input code and debug, and complete the course experiment.
本公开实施例,能够在制作课程时对项目进行引用,根据项目的实验标签生成实验内容,将实验内容与课程相关联,得到课程的课程实验,从而提高课程实验的生产效率,提高用户使用的便利性。The embodiment of the present disclosure can refer to the project when making the course, generate the experimental content according to the experimental label of the project, associate the experimental content with the course, and obtain the course experiment of the course, thereby improving the production efficiency of the course experiment and improving the user experience. convenience.
在一种可能的实现方式中,用户可通过客户端登录到第一电子设备(在线教育平台),在该第一电子设备上创建项目(例如,编程类项目)。In a possible implementation manner, the user may log in to the first electronic device (online education platform) through the client, and create a project (for example, a programming project) on the first electronic device.
在一种可能的实现方式中,在步骤S11之前,本公开实施例的实验生成方法还可包括:In a possible implementation manner, before step S11, the experiment generating method of the embodiment of the present disclosure may further include:
响应于项目创建操作,创建目标项目;creating a target item in response to an item creation operation;
对所述目标项目的编辑界面中的输入内容进行调试,得到已调试的输入内容,所述已调试的输入内容中包括实验标签;Debugging the input content in the editing interface of the target project to obtain the debugged input content, and the debugged input content includes an experiment label;
根据已调试的输入内容,确定所述目标项目的当前项目版本的项目内容。According to the debugged input content, the project content of the current project version of the target project is determined.
在示例中,用户在想要创建项目时,可触发项目创建的控件,例如点击项目创建按钮;第一电子设备响应于用户的项目创建操作,可创建项目(称为目标项目),并在客户 端的显示界面中显示目标项目的编辑界面;用户可在编辑界面中输入内容(例如代码)、添加项目文件(例如,代码文件或注释文件)或导入数据(例如,导入数据集)等。In an example, when the user wants to create an item, he can trigger the item creation control, such as clicking the item creation button; the first electronic device can create an item (called a target item) in response to the user's item creation operation, and The editing interface of the target project is displayed on the display interface of the terminal; the user can input content (such as code), add project files (such as code files or comment files) or import data (such as importing data sets) in the editing interface.
在一种可能的实现方式中,目标项目例如包括编程项目,本公开对目标项目的具体类型不作限制。In a possible implementation manner, the target project includes, for example, a programming project, and the present disclosure does not limit the specific type of the target project.
在一种可能的实现方式中,第一电子设备可对用户的输入内容进行调试,得到已调试的输入内容,该已调试的输入内容中包括实验标签。用户可在调试前向输入内容中加入实验标签,也可在调试后向输入内容中加入实验标签,本公开对此不作限制。In a possible implementation manner, the first electronic device may debug the user's input content to obtain debugged input content, where the debugged input content includes an experiment label. The user can add experimental tags to the input content before debugging, or add experimental tags to the input content after debugging, which is not limited in this disclosure.
在一种可能的实现方式中,在调试通过后,可将已调试的输入内容,确定为目标项目的当前项目版本的项目内容,从而完成项目创建过程。In a possible implementation manner, after the debugging is passed, the debugged input content may be determined as the project content of the current project version of the target project, thereby completing the project creation process.
在一种可能的实现方式中,在后续处理中,用户可对该当前项目版本的项目内容修改并再次调试;也可在目标项目中创建新的项目版本,重新输入内容或修改以前的项目内容并调试,得到新版本的项目内容。In a possible implementation, in the subsequent processing, the user can modify the project content of the current project version and debug again; it can also create a new project version in the target project, re-enter the content or modify the previous project content And debug to get the new version of the project content.
在示例中,目标项目可包括至少一个版本的项目内容,本公开对项目的版本数量不作限制。In an example, the target item may include at least one version of the item content, and the present disclosure does not limit the number of versions of the item.
在示例中,通过这种方式,可以实现项目的创建过程,以便于后续进行引用;并且,项目包括不同版本的设计,有利于用户自行维护,也有利于满足后续不同阶段教学课程的引用需求,从而进一步提高课程实验的生产效率。In the example, in this way, the creation process of the project can be implemented for subsequent reference; moreover, the project includes different versions of the design, which is beneficial for users to maintain themselves, and is also conducive to meeting the reference requirements of subsequent teaching courses at different stages. Thereby further improving the production efficiency of course experiments.
在一种可能的实现方式中,当用户在制作课程时,如果用户想要向该目标课程引入项目作为该目标课程的课程实验,则可触发引用操作,例如点击引用项目的控件,以使第一电子设备获取待选择的引用项目,例如用户自己创建的项目、第一电子设备上自生产的项目或其他用户公开的项目等,本公开对项目的来源不作限制。In a possible implementation, when the user is making a course, if the user wants to introduce a project into the target course as a course experiment of the target course, the reference operation can be triggered, such as clicking the control of the reference project, so that the first An electronic device acquires referenced items to be selected, such as items created by the user, items produced by the first electronic device, or items disclosed by other users, etc. The disclosure does not limit the source of the items.
在一种可能的实现方式中,响应于针对被选中的项目(称为目标项目)的引用操作,可在步骤S12中,根据目标项目的实验标签,生成目标项目的实验内容。In a possible implementation manner, in response to the reference operation on the selected item (called the target item), in step S12, the experimental content of the target item may be generated according to the experimental label of the target item.
在一种可能的实现方式中,步骤S12可包括:In a possible implementation, step S12 may include:
响应于针对目标项目的引用操作,生成所述目标项目的项目快照;generating a project snapshot of the target project in response to a reference operation on the target project;
根据所述目标项目的实验标签,对所述项目快照进行转换,生成所述目标项目的实验内容。According to the experiment label of the target project, the project snapshot is converted to generate the experiment content of the target project.
在示例中,如果目标项目被引用,则平台可根据目标项目的现有项目状态自动生成项目快照。其中,快照可以指数据存储的某一时刻的状态记录。生成项目快照的过程,即将目标项目的现有项目状态下的数据(例如,项目内容)记录在一个文件里,该文件称为项目快照。本公开对项目快照的具体生成方式不作限制。In an example, if the target project is referenced, the platform can automatically generate a project snapshot based on the existing project status of the target project. Wherein, a snapshot may refer to a state record at a certain moment of data storage. The process of generating a project snapshot is to record the data (for example, project content) in the current project state of the target project in a file, and the file is called a project snapshot. The present disclosure does not limit the specific method of generating project snapshots.
在一种可能的实现方式中,根据目标项目的实验标签,可基于项目快照生成目标项目的实验内容。In a possible implementation manner, according to the experiment label of the target project, the experimental content of the target project can be generated based on the project snapshot.
在示例中,通过这种方式,可使得将目标项目转化为课程实验的处理过程不对目标项目及目标项目的版本历史造成影响,提高了用户使用的便利性。In an example, in this way, the process of converting the target project into a course experiment does not affect the target project and the version history of the target project, which improves the convenience for users.
在一种可能的实现方式中,用户可在目标项目中创建新的项目版本,重新输入内容或修改以前的项目内容并调试,得到新版本的项目内容。在该情况下,目标项目可包括至少一个项目版本。在向用户提供待选择的引用项目时,还可提供项目的各个版本,用户可以选择项目的某一个版本进行引用。In a possible implementation manner, the user can create a new project version in the target project, re-enter the content or modify the previous project content and debug to obtain the new version of the project content. In this case, the target project may include at least one project version. When providing the user with reference items to be selected, various versions of the items may also be provided, and the user may select a certain version of the item for reference.
在一种可能的实现方式中,响应于针对目标项目的引用操作,生成所述目标项目的项目快照的步骤,可包括:In a possible implementation manner, in response to the reference operation on the target project, the step of generating the project snapshot of the target project may include:
响应于针对目标项目的引用操作,确定所述目标项目中被引用的项目版本;根据所述项目版本的项目内容,生成所述目标项目的项目快照。In response to the reference operation for the target project, determine the referenced project version in the target project; generate a project snapshot of the target project according to the project content of the project version.
在示例中,可将用户选中的目标项目的项目版本,作为目标项目中被引用的项目版本;再根据该项目版本的项目内容,生成项目快照。In the example, the project version of the target project selected by the user can be used as the project version referenced in the target project; and then a project snapshot is generated according to the project content of the project version.
在示例中,通过这种方式,能够提高项目引用的灵活性,进一步提高实验生产效率。In the example, in this way, the flexibility of project reference can be improved, and the experimental production efficiency can be further improved.
在一种可能的实现方式中,所述根据所述目标项目的实验标签,对所述项目快照进行转换,生成所述目标项目的实验内容的步骤,可包括:In a possible implementation manner, the step of converting the project snapshot according to the experimental label of the target project to generate the experimental content of the target project may include:
根据所述实验标签,从所述项目快照中移除与所述实验标签对应的待编写内容,生成实验快照;根据所述实验快照,生成所述目标项目的实验内容。According to the experiment tag, remove the content to be written corresponding to the experiment tag from the project snapshot to generate an experiment snapshot; according to the experiment snapshot, generate the experiment content of the target project.
在示例中,可根据实验标签,去除项目快照中的待编写内容,得到目标项目的实验快照。例如,根据实验标签{EDU-TAG:Coding Starts}和{EDU-TAG:Coding Ends},从项目快照的文件中去除编程项目中的实际代码内容,在实际代码内容处留有空白区域,生成一个新的文件,称为实验快照。In the example, according to the experimental label, the content to be written in the project snapshot can be removed to obtain the experimental snapshot of the target project. For example, according to the experimental tags {EDU-TAG:Coding Starts} and {EDU-TAG:Coding Ends}, the actual code content in the programming project is removed from the file of the project snapshot, leaving a blank area where the actual code content is, and a The new file, called the experiment snapshot.
在一种可能的实现方式中,可将实验快照确定为目标项目的实验内容;或对实验快照进行格式转换等,得到目标项目的实验内容。本公开对此不作限制。In a possible implementation manner, the experimental snapshot may be determined as the experimental content of the target project; or the format of the experimental snapshot may be converted to obtain the experimental content of the target project. This disclosure does not limit this.
在示例中,通过这种方式,可使得将目标项目转化为课程实验的处理过程不对目标项目及目标项目的版本历史造成影响,提高了用户使用的便利性。In an example, in this way, the process of converting the target project into a course experiment does not affect the target project and the version history of the target project, which improves the convenience for users.
在一种可能的实现方式中,本公开实施例的实验生成方法还可包括:In a possible implementation manner, the experiment generation method in the embodiment of the present disclosure may further include:
响应于针对所述课程实验的触发操作,根据所述课程实验的实验内容,生成实验实例;控制第二电子设备展示所述实验实例的操作界面。In response to the trigger operation for the course experiment, an experiment instance is generated according to the experiment content of the course experiment; and the second electronic device is controlled to display the operation interface of the experiment instance.
在示例中,学生用户可通过第二电子设备(例如,手机、平板电脑、个人电脑PC等)上的客户端登录第一电子设备(例如,在线教育平台),学习目标课程。在学习到目标课程的课程实验时,可点击课程实验的控件以触发课程实验。In an example, a student user can log in to a first electronic device (eg, an online education platform) through a client on a second electronic device (eg, a mobile phone, a tablet computer, a personal computer, etc.) to learn a target course. When learning the course experiment of the target course, you can click the control of the course experiment to trigger the course experiment.
在一种可能的实现方式中,响应于针对课程实验的触发操作,第一电子设备可根据课程实验的实验内容,生成针对该学生用户的实验实例;并控制第二电子设备展示实验实例的操作界面。例如,展示实验内容的输入界面,以供用户输入代码。In a possible implementation, in response to the trigger operation for the course experiment, the first electronic device can generate an experiment instance for the student user according to the experiment content of the course experiment; and control the second electronic device to display the operation of the experiment instance interface. For example, display an input interface for experiment content for users to enter codes.
在一种可能的实现方式中,该实验实例可为课程实验的副本,在多个学生用户进行课程实验时,可分别为各个学生用户创建实验实例,实验实例彼此之间互不影响。In a possible implementation manner, the experiment instance may be a copy of the course experiment. When multiple student users conduct course experiments, experiment instances may be created for each student user, and the experiment instances do not affect each other.
在示例中,通过这种方式,能够提高课程实验的可操作性,提高用户使用的便利性。In an example, in this way, the operability of course experiments can be improved, and the convenience for users can be improved.
图2示出根据本公开实施例的课程实验生成及使用过程的示意图。如图2所示,用户(例如,教师用户)可创建有目标项目,该目标项目包括5个项目版本:版本1~版本5。Fig. 2 shows a schematic diagram of the process of creating and using course experiments according to an embodiment of the present disclosure. As shown in FIG. 2 , a user (for example, a teacher user) can create a target project, and the target project includes five project versions: version 1 to version 5 .
在示例中,用户在制作课程时,可对目标项目进行引用,例如选择目标项目的版本2进行引用。根据该引用请求,系统(在线教育平台)可生成目标项目的版本2的项目快照;依照实验标签对项目快照进行转换,得到实验快照;将实验快照与目标课程相关联,作为目标课程的课程实验。In an example, when making a course, the user can refer to the target project, for example, select version 2 of the target project for reference. According to the reference request, the system (online education platform) can generate a project snapshot of version 2 of the target project; convert the project snapshot according to the experiment label to obtain the experiment snapshot; associate the experiment snapshot with the target course as the course experiment of the target course .
在示例中,学生用户在进行目标课程的实验时,可触发该课程实验。系统可根据实验快照,创建针对各个学生的实验实例,例如图2中的实验实例-学生1、实验实例-学生2、实验实例-学生3,以供各个学生分别进行实验,实验实例彼此之间互不影响。In the example, when a student user is conducting an experiment of a target course, the course experiment can be triggered. According to the experimental snapshot, the system can create experimental instances for each student, such as experimental instance-student 1, experimental instance-student 2, and experimental instance-student 3 in Figure 2, so that each student can conduct experiments separately, and the experimental instances are different from each other. do not affect each other.
在示例中,通过这种方式,将目标项目转化为课程实验的处理过程不对目标项目及目标项目的版本历史造成影响。学生用户在学习课程并打开实验时,系统能够为每个学生创建实验实例,学生利用实验实例进行操作实践并调试完成实验。整个处理过程表现为内隐式,由系统自动处理,用户层面不需要特别关注。In this way, in the example, the process of converting a target project into a course experiment does not affect the target project and its version history. When a student user is learning a course and opening an experiment, the system can create an experiment instance for each student, and the student uses the experiment instance to practice and debug to complete the experiment. The entire processing process is shown as implicit, which is automatically processed by the system, and the user level does not need to pay special attention.
图3示出根据本公开实施例的课程实验生成过程的示意图。如图3所示,对于教师用户侧,教师用户可创建项目,在输入内容后调试项目,并定义实验标签。教师用户在制作课程时,可在课程中引用该项目。Fig. 3 shows a schematic diagram of a course experiment generation process according to an embodiment of the present disclosure. As shown in Figure 3, for the teacher user side, the teacher user can create a project, debug the project after inputting content, and define experiment tags. Teacher users can reference this item in their courses when they create courses.
在示例中,对于系统侧(在线教育平台),响应于项目的引用操作,可产生项目快照;根据实验标签,可移除标签内的代码,得到实验快照;进而生成课程实验,并将该实验与课程相关联。In the example, for the system side (online education platform), a project snapshot can be generated in response to the reference operation of the project; according to the experiment label, the code in the label can be removed to obtain the experiment snapshot; then the course experiment is generated, and the experiment associated with the course.
在示例中,对于学生用户侧,可对该课程进行学习;在学习过程中操作实验,调试 实验,并在调试通过后完成实验。In the example, for the student user side, the course can be studied; during the learning process, the experiment is operated, the experiment is debugged, and the experiment is completed after the debugging is passed.
图4示出本公开实施例的实验生成方法的流程图。如图4所示,所述实验生成方法包括:FIG. 4 shows a flowchart of an experiment generation method of an embodiment of the present disclosure. As shown in Figure 4, the experiment generation method includes:
在步骤S41中,显示待制作的目标课程,所述目标课程包括至少一个课程实验;In step S41, the target course to be produced is displayed, and the target course includes at least one course experiment;
在步骤S42中,在项目引用控件被触发的情况下,显示待选择的至少一个项目;In step S42, when the item reference control is triggered, at least one item to be selected is displayed;
在步骤S43中,根据所述至少一个项目中被选中的目标项目,向第一电子设备发送实验生成请求,以使所述第一电子设备生成与所述目标课程相关联的课程实验,所述目标项目包括实验标签,所述实验标签用于指示课程实验中的待编写内容。In step S43, according to the selected target item in the at least one item, an experiment generation request is sent to the first electronic device, so that the first electronic device generates a course experiment associated with the target course, the The target item includes an experiment label, which is used to indicate the content to be written in the experiment of the course.
在一种可能的实现方式中,所述实验生成方法可以由终端设备等电子设备执行,终端设备可以为用户设备(User Equipment,UE)、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字助理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备、可穿戴设备等,所述方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。In a possible implementation manner, the experiment generation method may be executed by electronic equipment such as terminal equipment, and the terminal equipment may be user equipment (User Equipment, UE), mobile equipment, user terminal, terminal, cellular phone, cordless phone, For personal digital assistants (Personal Digital Assistant, PDA), handheld devices, computing devices, vehicle-mounted devices, wearable devices, etc., the method can be implemented by calling the computer-readable instructions stored in the memory by the processor.
在一种实现方式中,在上述步骤S41中,显示待制作的目标课程,可以包括以下步骤:In an implementation manner, in the above step S41, displaying the target course to be produced may include the following steps:
基于所述第二电子设备访问所述第一电子设备,获取所述待制作的目标课程;在所述第二电子设备的显示界面中显示所述待制作的目标课程。The target course to be produced is acquired based on the second electronic device accessing the first electronic device; and the target course to be produced is displayed on a display interface of the second electronic device.
在示例中,用户可通过第二电子设备(例如手机、平板电脑、个人电脑PC等)上的客户端登录第一电子设备(例如在线教育平台)。当教师用户想要制作课程时,可从第一电子设备获取待制作的目标课程。在步骤S41中,可在第二电子设备的显示界面中显示待制作的目标课程。In an example, the user may log in to the first electronic device (such as an online education platform) through a client on a second electronic device (such as a mobile phone, a tablet computer, a personal computer, etc.). When the teacher user wants to make a course, the target course to be made can be obtained from the first electronic device. In step S41, the target course to be made may be displayed on the display interface of the second electronic device.
在一种可能的实现方式中,在项目引用控件被触发的情况下,显示待选择的至少一个项目前,上述实验生成方法,可以包括以下步骤:In a possible implementation manner, before displaying at least one item to be selected when the item reference control is triggered, the above experiment generation method may include the following steps:
基于所述第二电子设备检测用户对项目引用控件的点击操作;在检测到用户对项目引用控件的点击操作的情况下,确定项目引用控件被触发。Based on the second electronic device detecting the user's click operation on the item reference control; if the user's click operation on the item reference control is detected, it is determined that the item reference control is triggered.
在示例中,如果用户想要向该目标课程引入项目作为该目标课程的课程实验,则可点击第二电子设备的显示界面中的项目引用控件,触发项目引用操作;这里,项目引用控件用于触发项目引用操作。相应地,基于第二电子设备检测用户对项目引用控件的点击操作,在检测到用户对项目引用控件的点击操作的情况下,确定项目引用控件被触发。In an example, if the user wants to introduce a project into the target course as a course experiment of the target course, he can click the project reference control in the display interface of the second electronic device to trigger the project reference operation; here, the project reference control is used for Trigger a project reference action. Correspondingly, based on the second electronic device detecting the user's click operation on the item reference control, if the user's click operation on the item reference control is detected, it is determined that the item reference control is triggered.
在一种实现方式中,在上述步骤S42中,在项目引用控件被触发的情况下,显示待选择的至少一个项目,包括:In one implementation, in the above step S42, when the item reference control is triggered, displaying at least one item to be selected includes:
在项目引用控件被触发的情况下,从所述第一电子设备获取待选择的至少一个项目,在所述第二电子设备的显示界面中显示所述待选择的至少一个项目。When the item reference control is triggered, at least one item to be selected is acquired from the first electronic device, and the at least one item to be selected is displayed on a display interface of the second electronic device.
在示例中,在步骤S42中,在项目引用控件被触发的情况下,第二电子设备可从第一电子设备获取待选择的至少一个项目,并在第二电子设备的显示界面中显示该至少一个项目,以供用户选择。In an example, in step S42, when the item reference control is triggered, the second electronic device may obtain at least one item to be selected from the first electronic device, and display the at least one item on the display interface of the second electronic device. An item for the user to select.
在一种可能的实现方式中,在根据所述至少一个项目中被选中的目标项目,向第一电子设备发送实验生成请求前,上述实验生成方法,可以包括以下步骤:In a possible implementation manner, before sending an experiment generation request to the first electronic device according to the selected target item in the at least one item, the above experiment generation method may include the following steps:
基于所述第二电子设备检测用户对所述待选择的至少一个项目的选中操作,在检测到用户对所述待选择的至少一个项目的选中操作时,确定所述至少一个项目中被选中的目标项目。Based on the second electronic device detecting the user's selection operation on the at least one item to be selected, when the user's selection operation on the at least one item to be selected is detected, determine the selected one of the at least one item target item.
进一步地,在步骤S43中,在所述至少一个项目中被选中的目标项目的情况下,第二电子设备可根据被选中的目标项目,向第一电子设备发送实验生成请求,以使第一电子设备基于目标项目生成与目标课程相关联的课程实验。Further, in step S43, in the case of the selected target item in the at least one item, the second electronic device may send an experiment generation request to the first electronic device according to the selected target item, so that the first The electronic device generates a course experiment associated with the target course based on the target item.
在一种可能的实现方式中,该目标项目的内容中包括实验标签,实验标签用于指示课程实验中的待编写内容。In a possible implementation manner, the content of the target item includes an experiment label, and the experiment label is used to indicate the content to be written in the course experiment.
在一种可能的实现方式中,在上述步骤S43中,所述第一电子设备生成与所述目标课程相关联的课程实验,可以包括以下步骤:In a possible implementation manner, in the above step S43, the first electronic device generates a course experiment associated with the target course, which may include the following steps:
所述第一电子设备响应于所述第二电子设备发送的实验生成请求,根据所述目标项目的项目版本生成所述目标项目的项目快照;根据所述实验标签对所述目标项目的项目快照进行转换,得到实验快照;根据所述目标课程以及所述实验快照与所述目标课程的关联关系,生成与所述目标课程相关联的课程实验。The first electronic device generates a project snapshot of the target project according to the project version of the target project in response to the experiment generation request sent by the second electronic device; and generates a project snapshot of the target project according to the experiment label Perform conversion to obtain an experiment snapshot; generate a course experiment associated with the target course according to the target course and the association relationship between the experiment snapshot and the target course.
在示例中,第一电子设备接收到实验生成请求后,可根据目标项目的项目版本,生成目标项目的项目快照;依照实验标签对目标项目的项目快照进行转换,得到实验快照;将实验快照与目标课程相关联,建立实验快照与目标课程的关联关系。In the example, after receiving the experiment generation request, the first electronic device can generate a project snapshot of the target project according to the project version of the target project; convert the project snapshot of the target project according to the experiment label to obtain the experiment snapshot; combine the experiment snapshot with The target course is associated, and the association relationship between the experiment snapshot and the target course is established.
进一步地,在生成与目标课程相关联的课程实验时,根据目标课程以及实验快照与目标课程的关联关系,确定目标课程相关联的实验快照,将目标课程相关联的实验快照作为目标课程的课程实验。Further, when generating the course experiment associated with the target course, according to the target course and the association relationship between the experiment snapshot and the target course, determine the experiment snapshot associated with the target course, and use the experiment snapshot associated with the target course as the course of the target course experiment.
在示例中,通过这种方式,在制作课程时对项目进行引用,请求第二电子设备生成课程的课程实验,从而提高课程实验的生产效率,提高用户使用的便利性。In an example, in this way, the project is referenced when making a course, and the second electronic device is requested to generate a course experiment of the course, thereby improving the production efficiency of the course experiment and improving the convenience for users.
本公开实施例的实验生成方法,允许用户在平台上自生产教学用的实验,并能够辅助用户把自创项目自动转换为教学实验,提升自生产效率;基于注释的标签来生成课程实验,不影响用户正常调试项目代码,又可以使得系统能自动生成教学用的代码模板,提高了用户使用的便利性;通过内隐式版本管理,减少了用户原始项目版本和学生操作的实验间相互影响,同时隐藏了复杂的版本管理逻辑,提升了用户体验。The experiment generation method of the embodiment of the present disclosure allows users to self-produce teaching experiments on the platform, and can assist users to automatically convert self-created projects into teaching experiments, improving self-production efficiency; generating course experiments based on annotation labels, without It affects users' normal debugging of project code, and enables the system to automatically generate code templates for teaching, which improves the convenience of users; through implicit version management, the interaction between the user's original project version and the experiments operated by students is reduced. At the same time, it hides the complex version management logic and improves the user experience.
本公开实施例的实验生成方法,能够降低教师自生产教学实验的复杂度,极大的提升了效率,教师可以在自己编写普通项目的基础上,便捷地自动生成教学实验。平台上自生产的内容在不同用户间保持了较好的独立性,教师、学生的项目、实验都做了快照式版本管理,互不影响修改的内容。The experiment generating method of the embodiment of the present disclosure can reduce the complexity of the teacher's self-produced teaching experiment and greatly improve the efficiency. The teacher can conveniently and automatically generate the teaching experiment on the basis of writing common projects by himself. The self-produced content on the platform maintains good independence among different users. The projects and experiments of teachers and students are managed in a snapshot version, which does not affect the modified content.
本公开实施例的实验生成方法,能够应用于人工智能教育平台、在线编程教育平台、在线编程平台、人工智能科创平台等应用场景中,使得产品具备编程教学类实验的生产能力(即用户生成内容(User Generated Content,UGC)模式),提高课程实验的生产效率。The experiment generation method of the embodiment of the present disclosure can be applied to application scenarios such as artificial intelligence education platform, online programming education platform, online programming platform, artificial intelligence technology innovation platform, etc., so that the product has the production capacity of programming teaching experiments (that is, user-generated Content (User Generated Content, UGC) mode) to improve the production efficiency of course experiments.
例如,平台供应商的教育教研团队可使用平台来创建Python编程项目、AI编程项目等,通过平台能力可以快速将教研团队自创的项目转换为教学实验,并跟知识体系结合起来形成完整的课程。For example, the education and research team of a platform provider can use the platform to create Python programming projects, AI programming projects, etc. Through the platform capabilities, the projects created by the teaching and research team can be quickly converted into teaching experiments, and combined with the knowledge system to form a complete course .
例如,在客户交付的平台上,客户侧教研老师可以在日常备课或工作中创作Python编程项目、积木编程项目、硬件项目等,并通过平台能力快速转换为教学实验,将这些实验应用到实际教学中。For example, on the platform delivered by the customer, teaching and research teachers on the customer side can create Python programming projects, building block programming projects, hardware projects, etc. in daily lesson preparation or work, and quickly convert them into teaching experiments through platform capabilities, and apply these experiments to actual teaching middle.
应理解,本公开提及的上述各个方法实施例,在不违背原理逻辑的情况下,均可以彼此相互结合形成结合后的实施例。本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。It should be understood that the various method embodiments mentioned in the present disclosure may be combined with each other to form a combined embodiment without violating the principle and logic. Those skilled in the art can understand that, in the above method in the specific implementation manner, the specific execution order of each step should be determined according to its function and possible internal logic.
此外,本公开还提供了实验生成装置、电子设备、计算机可读存储介质、程序,上述均可用来实现本公开提供的任一种实验生成方法,相应技术方案和描述和参见方法部分的相应记载。In addition, the present disclosure also provides experiment generating devices, electronic equipment, computer-readable storage media, and programs, all of which can be used to implement any of the experiment generating methods provided in the present disclosure, corresponding technical solutions and descriptions, and corresponding records in the method section .
图5示出根据本公开实施例的实验生成装置的框图,如图5所示,所述装置应用于第一电子设备,包括:Fig. 5 shows a block diagram of an experiment generating device according to an embodiment of the present disclosure. As shown in Fig. 5, the device is applied to a first electronic device, including:
课程获取模块51,配置为获取待制作的目标课程,所述目标课程包括至少一个课程实验;The course obtaining module 51 is configured to obtain the target course to be produced, and the target course includes at least one course experiment;
内容生成模块52,配置为响应于针对目标项目的引用操作,根据所述目标项目的实验标签,生成所述目标项目的实验内容,所述实验标签配置为指示课程实验中的待编写 内容;The content generation module 52 is configured to generate the experimental content of the target project according to the experimental label of the target project in response to the reference operation for the target project, and the experimental label is configured to indicate the content to be written in the course experiment;
实验关联模块53,配置为将所述目标项目的实验内容与所述目标课程相关联,以得到所述至少一个课程实验。The experiment association module 53 is configured to associate the experiment content of the target project with the target course, so as to obtain the at least one course experiment.
在一种可能的实现方式中,所述内容生成模块包括:项目快照生成子模块,配置为响应于针对目标项目的引用操作,生成所述目标项目的项目快照;快照转换子模块,配置为根据所述目标项目的实验标签,对所述项目快照进行转换,生成所述目标项目的实验内容。In a possible implementation manner, the content generation module includes: a project snapshot generation submodule configured to generate a project snapshot of the target project in response to a reference operation on the target project; a snapshot conversion submodule configured to The experimental label of the target project converts the project snapshot to generate the experimental content of the target project.
在一种可能的实现方式中,所述目标项目包括至少一个项目版本,所述项目快照生成子模块进一步配置为:响应于针对目标项目的引用操作,确定所述目标项目中被引用的项目版本;根据所述项目版本的项目内容,生成所述目标项目的项目快照。In a possible implementation manner, the target project includes at least one project version, and the project snapshot generation submodule is further configured to: determine the referenced project version in the target project in response to a reference operation on the target project ; Generating a project snapshot of the target project according to the project content of the project version.
在一种可能的实现方式中,所述快照转换子模块进一步配置为:根据所述实验标签,从所述项目快照中移除与所述实验标签对应的待编写内容,生成实验快照;根据所述实验快照,生成所述目标项目的实验内容。In a possible implementation manner, the snapshot conversion submodule is further configured to: remove the content to be written corresponding to the experiment label from the project snapshot according to the experiment label, and generate an experiment snapshot; The experiment snapshot is generated to generate the experiment content of the target project.
在一种可能的实现方式中,在所述课程获取模块之前,所述装置还包括:In a possible implementation manner, before the course obtaining module, the device further includes:
项目创建模块,配置为响应于项目创建操作,创建目标项目;调试模块,配置为对所述目标项目的编辑界面中的输入内容进行调试,得到已调试的输入内容,所述已调试的输入内容中包括实验标签;项目内容确定模块,配置为根据已调试的输入内容,确定所述目标项目的当前项目版本的项目内容。The project creation module is configured to create a target project in response to the project creation operation; the debugging module is configured to debug the input content in the editing interface of the target project to obtain the debugged input content, and the debugged input content includes an experiment label; a project content determination module configured to determine the project content of the current project version of the target project according to the debugged input content.
在一种可能的实现方式中,所述装置还包括:实例生成模块,配置为响应于针对所述课程实验的触发操作,根据所述课程实验的实验内容,生成实验实例;界面展示模块,配置为控制第二电子设备展示所述实验实例的操作界面。In a possible implementation manner, the device further includes: an example generation module configured to generate an experiment instance according to the experiment content of the course experiment in response to a trigger operation for the course experiment; an interface display module configured to The operation interface of the experimental example is shown for controlling the second electronic device.
在一种可能的实现方式中,所述第一电子设备包括在线教育平台,所述目标课程包括Python编程课程、积木编程课程、人工智能AI编程课程中的任意一种,所述目标项目包括编程项目。In a possible implementation, the first electronic device includes an online education platform, the target course includes any one of Python programming courses, building block programming courses, and artificial intelligence AI programming courses, and the target project includes programming project.
图6示出根据本公开实施例的实验生成装置的框图,如图6所示,所述装置应用于第二电子设备,包括:Fig. 6 shows a block diagram of an experiment generation device according to an embodiment of the present disclosure. As shown in Fig. 6, the device is applied to a second electronic device, including:
课程显示模块61,配置为显示待制作的目标课程,所述目标课程包括至少一个课程实验;The course display module 61 is configured to display the target course to be produced, and the target course includes at least one course experiment;
项目选择模块62,配置为在项目引用控件被触发的情况下,显示待选择的至少一个项目;The item selection module 62 is configured to display at least one item to be selected when the item reference control is triggered;
请求发送模块63,配置为根据所述至少一个项目中被选中的目标项目,向第一电子设备发送实验生成请求,以使所述第一电子设备生成与所述目标课程相关联的课程实验,所述目标项目包括实验标签,所述实验标签配置为指示课程实验中的待编写内容。The request sending module 63 is configured to send an experiment generation request to the first electronic device according to the selected target item in the at least one item, so that the first electronic device generates a course experiment associated with the target course, The target item includes an experiment label configured to indicate content to be written in a course experiment.
在一种可能的实现方式中,所述课程显示模块61,配置为显示待制作的目标课程,包括:In a possible implementation manner, the course display module 61 is configured to display the target course to be produced, including:
基于所述课程显示模块访问所述第一电子设备,获取所述待制作的目标课程;在所述课程显示模块的显示界面中显示所述待制作的目标课程。Accessing the first electronic device based on the course display module to obtain the target course to be produced; displaying the target course to be produced on a display interface of the course display module.
在一种可能的实现方式中,所述项目显示模块62还配置为:In a possible implementation manner, the item display module 62 is further configured to:
基于所述项目显示模块检测用户对项目引用控件的点击操作;在检测到用户对项目引用控件的点击操作的情况下,确定项目引用控件被触发。Based on the item display module, the user's click operation on the item reference control is detected; when the user's click operation on the item reference control is detected, it is determined that the item reference control is triggered.
在一种可能的实现方式中,所述项目显示模块62,配置为在项目引用控件被触发的情况下,显示待选择的至少一个项目,包括:In a possible implementation manner, the item display module 62 is configured to display at least one item to be selected when the item reference control is triggered, including:
在项目引用控件被触发的情况下,从所述第一电子设备获取待选择的至少一个项目,在所述项目显示模块的显示界面中显示所述待选择的至少一个项目。When the item reference control is triggered, at least one item to be selected is obtained from the first electronic device, and the at least one item to be selected is displayed on the display interface of the item display module.
在一种可能的实现方式中,所述实验生成模块63,还配置为:In a possible implementation, the experiment generation module 63 is further configured to:
基于所述实验生成模块检测用户对所述待选择的至少一个项目的选中操作;Detecting a user's selection operation on the at least one item to be selected based on the experiment generating module;
在检测到用户对所述待选择的至少一个项目的选中操作时,确定所述至少一个项目中被选中的目标项目。When a user's selection operation on the at least one item to be selected is detected, a selected target item among the at least one item is determined.
在一些实施例中,本公开实施例提供的装置具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述。In some embodiments, the functions or modules included in the apparatus provided by the embodiments of the present disclosure may be used to execute the methods described in the above method embodiments, and for specific implementation, refer to the descriptions of the above method embodiments.
本公开实施例还提出一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。计算机可读存储介质可以是易失性或非易失性计算机可读存储介质。Embodiments of the present disclosure also provide a computer-readable storage medium, on which computer program instructions are stored, and the above-mentioned method is implemented when the computer program instructions are executed by a processor. Computer readable storage media may be volatile or nonvolatile computer readable storage media.
本公开实施例还提出一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为调用所述存储器存储的指令,以执行上述方法。An embodiment of the present disclosure also proposes an electronic device, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.
本公开实施例还提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备的处理器中运行时,所述电子设备中的处理器执行上述方法。An embodiment of the present disclosure also provides a computer program product, including computer-readable codes, or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are stored in a processor of an electronic device When running in the electronic device, the processor in the electronic device executes the above method.
在示例中,电子设备可以被提供为终端、服务器或其它形态的设备。In examples, electronic devices may be provided as terminals, servers, or other forms of devices.
图7示出根据本公开实施例的一种电子设备800的框图。例如,电子设备800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等终端。FIG. 7 shows a block diagram of an electronic device 800 according to an embodiment of the present disclosure. For example, the electronic device 800 may be a terminal such as a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, or a personal digital assistant.
参照图7,电子设备800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。7, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814 , and the communication component 816.
处理组件802通常控制电子设备800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operations of the electronic device 800, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802 .
存储器804被配置为存储各种类型的数据以支持在电子设备800的操作。这些数据的示例包括用于在电子设备800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operations at the electronic device 800 . Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电源组件806为电子设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为电子设备800生成、管理和分配电力相关联的组件。The power supply component 806 provides power to various components of the electronic device 800 . Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 800 .
多媒体组件808包括在所述电子设备800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当电子设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen providing an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当电子设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经 由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 800 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件814包括一个或多个传感器,用于为电子设备800提供各个方面的状态评估。例如,传感器组件814可以检测到电子设备800的打开/关闭状态,组件的相对定位,例如所述组件为电子设备800的显示器和小键盘,传感器组件814还可以检测电子设备800或电子设备800一个组件的位置改变,用户与电子设备800接触的存在或不存在,电子设备800方位或加速/减速和电子设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如互补金属氧化物半导体(CMOS)或电荷耦合装置(CCD)图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。 Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of electronic device 800 . For example, the sensor component 814 can detect the open/closed state of the electronic device 800, the relative positioning of components, such as the display and the keypad of the electronic device 800, the sensor component 814 can also detect the electronic device 800 or a Changes in position of components, presence or absence of user contact with electronic device 800 , electronic device 800 orientation or acceleration/deceleration and temperature changes in electronic device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 814 may also include an optical sensor, such as a complementary metal-oxide-semiconductor (CMOS) or charge-coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件816被配置为便于电子设备800和其他设备之间有线或无线方式的通信。电子设备800可以接入基于通信标准的无线网络,如无线网络(WiFi),第二代移动通信技术(2G)或第三代移动通信技术(3G),或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as a wireless network (WiFi), a second generation mobile communication technology (2G) or a third generation mobile communication technology (3G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例中,电子设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an example, electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the method described above.
在示例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器804,上述计算机程序指令可由电子设备800的处理器820执行以完成上述方法。In an example, there is also provided a non-volatile computer-readable storage medium, such as the memory 804 including computer program instructions, which can be executed by the processor 820 of the electronic device 800 to implement the above method.
图8示出根据本公开实施例的一种电子设备1900的框图。例如,电子设备1900可以被提供为一服务器。参照图8,电子设备1900包括处理组件1922,其进一步包括一个或多个处理器,以及由存储器1932所代表的存储器资源,用于存储可由处理组件1922的执行的指令,例如应用程序。存储器1932中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1922被配置为执行指令,以执行上述方法。FIG. 8 shows a block diagram of an electronic device 1900 according to an embodiment of the present disclosure. For example, electronic device 1900 may be provided as a server. Referring to FIG. 8 , electronic device 1900 includes processing component 1922 , which further includes one or more processors, and a memory resource represented by memory 1932 for storing instructions executable by processing component 1922 , such as application programs. The application programs stored in memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.
电子设备1900还可以包括一个电源组件1926被配置为执行电子设备1900的电源管理,一个有线或无线网络接口1950被配置为将电子设备1900连接到网络,和一个输入输出(I/O)接口1958。电子设备1900可以操作基于存储在存储器1932的操作系统,例如微软服务器操作系统(Windows ServerTM),苹果公司推出的基于图形用户界面操作系统(Mac OS XTM),多用户多进程的计算机操作系统(UnixTM),自由和开放原代码的类Unix操作系统(LinuxTM),开放原代码的类Unix操作系统(FreeBSDTM)或类似。 Electronic device 1900 may also include a power supply component 1926 configured to perform power management of electronic device 1900, a wired or wireless network interface 1950 configured to connect electronic device 1900 to a network, and an input-output (I/O) interface 1958 . The electronic device 1900 can operate based on the operating system stored in the memory 1932, such as the Microsoft server operating system (Windows ServerTM), the graphical user interface-based operating system (Mac OS XTM) introduced by Apple Inc., and the multi-user and multi-process computer operating system (UnixTM). ), a free and open source Unix-like operating system (LinuxTM), an open source Unix-like operating system (FreeBSDTM), or similar.
在示例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器1932,上述计算机程序指令可由电子设备1900的处理组件1922执行以完成上述方法。In an example, there is also provided a non-volatile computer-readable storage medium, such as the memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to implement the above-mentioned method.
本公开实施例提供一种计算机程序产品,该计算机程序产品承载有程序代码,所述程序代码包括的指令可用于执行上述方法实施例中的实验生成方法的步骤,具体可参见上述方法实施例。An embodiment of the present disclosure provides a computer program product, the computer program product carries a program code, and the instructions included in the program code can be used to execute the steps of the experiment generating method in the above method embodiment, for details, refer to the above method embodiment.
本公开可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本公开的各个方面的计算机可读程序指令。The present disclosure can be a system, method and/or computer program product. A computer program product may include a computer readable storage medium having computer readable program instructions thereon for causing a processor to implement various aspects of the present disclosure.
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是(但不限于)电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。A computer readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory), static random access memory (SRAM), compact disc read only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanically encoded device, such as a printer with instructions stored thereon A hole card or a raised structure in a groove, and any suitable combination of the above. As used herein, computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., pulses of light through fiber optic cables), or transmitted electrical signals.
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。Computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or downloaded to an external computer or external storage device over a network, such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. A network adapter card or a network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。Computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or Source or object code written in any combination, including object-oriented programming languages—such as Smalltalk, C++, etc., and conventional procedural programming languages—such as the “C” language or similar programming languages. Computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as via the Internet using an Internet service provider). connect). In some embodiments, an electronic circuit, such as a programmable logic circuit, field programmable gate array (FPGA), or programmable logic array (PLA), can be customized by utilizing state information of computer-readable program instructions, which can Various aspects of the present disclosure are implemented by executing computer readable program instructions.
这里参照根据本公开实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It should be understood that each block of the flowcharts and/or block diagrams, and combinations of blocks in the flowcharts and/or block diagrams, can be implemented by computer-readable program instructions.
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine such that when executed by the processor of the computer or other programmable data processing apparatus , producing an apparatus for realizing the functions/actions specified in one or more blocks in the flowchart and/or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause computers, programmable data processing devices and/or other devices to work in a specific way, so that the computer-readable medium storing instructions includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks in flowcharts and/or block diagrams.
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。It is also possible to load computer-readable program instructions into a computer, other programmable data processing device, or other equipment, so that a series of operational steps are performed on the computer, other programmable data processing device, or other equipment to produce a computer-implemented process , so that instructions executed on computers, other programmable data processing devices, or other devices implement the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.
附图中的流程图和框图显示了根据本公开的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或 多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, a portion of a program segment, or an instruction that includes one or more Executable instructions. In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.
该计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。The computer program product can be specifically realized by hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) etc. Wait.
以上已经描述了本公开的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。Having described various embodiments of the present disclosure above, the foregoing description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and alterations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principle of each embodiment, practical application or improvement of technology in the market, or to enable other ordinary skilled in the art to understand each embodiment disclosed herein.
工业实用性Industrial Applicability
本公开涉及一种实验生成方法及装置、电子设备和存储介质,所述方法包括:获取待制作的目标课程,所述目标课程包括至少一个课程实验;响应于针对目标项目的引用操作,根据所述目标项目的实验标签,生成所述目标项目的实验内容,所述实验标签用于指示课程实验中的待编写内容;将所述目标项目的实验内容与所述目标课程相关联,以得到所述至少一个课程实验。本公开实施例可提高课程实验的生产效率。The present disclosure relates to an experiment generation method and device, electronic equipment, and a storage medium. The method includes: acquiring a target course to be produced, the target course including at least one course experiment; responding to a reference operation for the target item, according to the The experimental label of the target project generates the experimental content of the target project, and the experimental label is used to indicate the content to be written in the course experiment; the experimental content of the target project is associated with the target course to obtain the Describe at least one course experiment. The embodiments of the present disclosure can improve the production efficiency of course experiments.

Claims (27)

  1. 一种实验生成方法,应用于第一电子设备,包括:A method of experimental generation, applied to a first electronic device, comprising:
    获取待制作的目标课程,所述目标课程包括至少一个课程实验;Obtain the target course to be produced, the target course includes at least one course experiment;
    响应于针对目标项目的引用操作,根据所述目标项目的实验标签,生成所述目标项目的实验内容,所述实验标签用于指示课程实验中的待编写内容;In response to the reference operation for the target project, generate the experimental content of the target project according to the experimental label of the target project, and the experimental label is used to indicate the content to be written in the course experiment;
    将所述目标项目的实验内容与所述目标课程相关联,以得到所述至少一个课程实验。Associating the experimental content of the target project with the target course to obtain the at least one course experiment.
  2. 根据权利要求1所述的方法,其中,所述响应于针对目标项目的引用操作,根据所述目标项目的实验标签,生成所述目标项目的实验内容,包括:The method according to claim 1, wherein, in response to the reference operation for the target item, generating the experimental content of the target item according to the experimental label of the target item includes:
    响应于针对目标项目的引用操作,生成所述目标项目的项目快照;generating a project snapshot of the target project in response to a reference operation on the target project;
    根据所述目标项目的实验标签,对所述项目快照进行转换,生成所述目标项目的实验内容。According to the experiment label of the target project, the project snapshot is converted to generate the experiment content of the target project.
  3. 根据权利要求2所述的方法,其中,所述目标项目包括至少一个项目版本,所述响应于针对目标项目的引用操作,生成所述目标项目的项目快照,包括:The method according to claim 2, wherein the target project includes at least one project version, and the generating a project snapshot of the target project in response to a reference operation on the target project comprises:
    响应于针对目标项目的引用操作,确定所述目标项目中被引用的项目版本;determining a referenced project version in the target project in response to a referencing operation on the target project;
    根据所述项目版本的项目内容,生成所述目标项目的项目快照。A project snapshot of the target project is generated according to the project content of the project version.
  4. 根据权利要求2或3所述的方法,其中,所述根据所述目标项目的实验标签,对所述项目快照进行转换,生成所述目标项目的实验内容,包括:The method according to claim 2 or 3, wherein said project snapshot is converted according to the experimental label of the target project to generate the experimental content of the target project, including:
    根据所述实验标签,从所述项目快照中移除与所述实验标签对应的待编写内容,生成实验快照;According to the experimental label, remove the content to be written corresponding to the experimental label from the project snapshot, and generate an experimental snapshot;
    根据所述实验快照,生成所述目标项目的实验内容。According to the experimental snapshot, the experimental content of the target project is generated.
  5. 根据权利要求1-4中任意一项所述的方法,其中,在所述获取待制作的目标课程之前,所述方法还包括:The method according to any one of claims 1-4, wherein, before the acquisition of the target course to be made, the method further comprises:
    响应于项目创建操作,创建目标项目;creating a target item in response to an item creation operation;
    对所述目标项目的编辑界面中的输入内容进行调试,得到已调试的输入内容,所述已调试的输入内容中包括实验标签;Debugging the input content in the editing interface of the target project to obtain the debugged input content, and the debugged input content includes an experiment label;
    根据已调试的输入内容,确定所述目标项目的当前项目版本的项目内容。According to the debugged input content, the project content of the current project version of the target project is determined.
  6. 根据权利要求1-5中任意一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1-5, wherein the method further comprises:
    响应于针对所述课程实验的触发操作,根据所述课程实验的实验内容,生成实验实例;In response to the trigger operation for the course experiment, an experiment instance is generated according to the experiment content of the course experiment;
    控制第二电子设备展示所述实验实例的操作界面。controlling the second electronic device to display the operation interface of the experimental example.
  7. 根据权利要求1-6中任意一项所述的方法,其中,所述第一电子设备包括在线教育平台,所述目标课程包括Python编程课程、积木编程课程、人工智能AI编程课程中的任意一种,所述目标项目包括编程项目。The method according to any one of claims 1-6, wherein the first electronic device includes an online education platform, and the target course includes any one of a Python programming course, a building block programming course, and an artificial intelligence AI programming course In this case, the target project includes a programming project.
  8. 一种实验生成方法,应用于第二电子设备,包括:A method of experimental generation, applied to a second electronic device, comprising:
    显示待制作的目标课程,所述目标课程包括至少一个课程实验;displaying a target course to be produced, the target course including at least one course experiment;
    在项目引用控件被触发的情况下,显示待选择的至少一个项目;Displaying at least one item to be selected when the item reference control is triggered;
    根据所述至少一个项目中被选中的目标项目,向第一电子设备发送实验生成请求,以使所述第一电子设备生成与所述目标课程相关联的课程实验,所述目标项目包括实验标签,所述实验标签用于指示课程实验中的待编写内容。According to the selected target item in the at least one item, an experiment generation request is sent to the first electronic device, so that the first electronic device generates a course experiment associated with the target course, and the target item includes an experiment label , the experiment label is used to indicate the content to be written in the experiment of the course.
  9. 根据权利要求8所述的方法,其中,所述显示待制作的目标课程,包括:The method according to claim 8, wherein said displaying the target course to be made comprises:
    基于所述第二电子设备访问所述第一电子设备,获取所述待制作的目标课程;在所述第二电子设备的显示界面中显示所述待制作的目标课程。The target course to be produced is acquired based on the second electronic device accessing the first electronic device; and the target course to be produced is displayed on a display interface of the second electronic device.
  10. 根据权利要求8所述的方法,其中,在所述项目引用控件被触发的情况下,显示待选择的至少一个项目前,所述方法还包括:The method according to claim 8, wherein, when the item reference control is triggered, before displaying at least one item to be selected, the method further comprises:
    基于所述第二电子设备检测用户对项目引用控件的点击操作;在检测到用户对项目引用控件的点击操作的情况下,确定项目引用控件被触发。Based on the second electronic device detecting the user's click operation on the item reference control; if the user's click operation on the item reference control is detected, it is determined that the item reference control is triggered.
  11. 根据权利要求8所述的方法,其中,所述在项目引用控件被触发的情况下,显示待选择的至少一个项目,包括:The method according to claim 8, wherein said displaying at least one item to be selected when the item reference control is triggered comprises:
    在项目引用控件被触发的情况下,从所述第一电子设备获取待选择的至少一个项目,在所述第二电子设备的显示界面中显示所述待选择的至少一个项目。When the item reference control is triggered, at least one item to be selected is acquired from the first electronic device, and the at least one item to be selected is displayed on a display interface of the second electronic device.
  12. 根据权利要求8所述的方法,其中,在根据所述至少一个项目中被选中的目标项目,向第一电子设备发送实验生成请求前,所述方法还包括:The method according to claim 8, wherein, before sending an experiment generation request to the first electronic device according to the selected target item in the at least one item, the method further comprises:
    基于所述第二电子设备检测用户对所述待选择的至少一个项目的选中操作;detecting a user's selection operation on the at least one item to be selected based on the second electronic device;
    在检测到用户对所述待选择的至少一个项目的选中操作时,确定所述至少一个项目中被选中的目标项目。When a user's selection operation on the at least one item to be selected is detected, a selected target item among the at least one item is determined.
  13. 一种实验生成装置,应用于第一电子设备,包括:An experiment generating device, applied to a first electronic device, comprising:
    课程获取模块,配置为获取待制作的目标课程,所述目标课程包括至少一个课程实验;A course acquisition module configured to acquire a target course to be produced, the target course including at least one course experiment;
    内容生成模块,配置为响应于针对目标项目的引用操作,根据所述目标项目的实验标签,生成所述目标项目的实验内容,所述实验标签配置为指示课程实验中的待编写内容;The content generation module is configured to generate the experimental content of the target project according to the experimental label of the target project in response to the reference operation for the target project, and the experimental label is configured to indicate the content to be written in the course experiment;
    实验关联模块,配置为将所述目标项目的实验内容与所述目标课程相关联,以得到所述至少一个课程实验。The experiment association module is configured to associate the experiment content of the target project with the target course, so as to obtain the at least one course experiment.
  14. 根据权利要求13所述的装置,其中,所述内容生成模块,配置为响应于针对目标项目的引用操作,根据所述目标项目的实验标签,生成所述目标项目的实验内容,包括:The device according to claim 13, wherein the content generation module is configured to generate the experimental content of the target item according to the experimental label of the target item in response to the reference operation for the target item, comprising:
    响应于针对目标项目的引用操作,生成所述目标项目的项目快照;generating a project snapshot of the target project in response to a reference operation on the target project;
    根据所述目标项目的实验标签,对所述项目快照进行转换,生成所述目标项目的实验内容。According to the experiment label of the target project, the project snapshot is converted to generate the experiment content of the target project.
  15. 根据权利要求14所述的装置,其中,所述目标项目包括至少一个项目版本,所述内容生成模块,配置为响应于针对目标项目的引用操作,生成所述目标项目的项目快照,包括:The apparatus according to claim 14, wherein the target project includes at least one project version, and the content generation module is configured to generate a project snapshot of the target project in response to a reference operation on the target project, comprising:
    响应于针对目标项目的引用操作,确定所述目标项目中被引用的项目版本;determining a referenced project version in the target project in response to a referencing operation on the target project;
    根据所述项目版本的项目内容,生成所述目标项目的项目快照。A project snapshot of the target project is generated according to the project content of the project version.
  16. 根据权利要求13或14所述的装置,其中,所述内容生成模块,配置为根据所述目标项目的实验标签,对所述项目快照进行转换,生成所述目标项目的实验内容,包括:The device according to claim 13 or 14, wherein the content generation module is configured to convert the project snapshot according to the experimental label of the target project, and generate the experimental content of the target project, including:
    根据所述实验标签,从所述项目快照中移除与所述实验标签对应的待编写内容,生成实验快照;According to the experimental label, remove the content to be written corresponding to the experimental label from the project snapshot, and generate an experimental snapshot;
    根据所述实验快照,生成所述目标项目的实验内容。According to the experimental snapshot, the experimental content of the target project is generated.
  17. 根据权利要求13-16中任意一项所述的装置,其中,在所述获取待制作的目标课程之前,所述装置还包括:The device according to any one of claims 13-16, wherein, before the acquisition of the target course to be produced, the device further comprises:
    项目创建模块,配置为响应于项目创建操作,创建目标项目;an item creation module configured to create a target item in response to an item creation operation;
    调试模块,配置为对所述目标项目的编辑界面中的输入内容进行调试,得到已调试的输入内容,所述已调试的输入内容中包括实验标签;The debugging module is configured to debug the input content in the editing interface of the target project to obtain the debugged input content, and the debugged input content includes an experiment label;
    项目内容确定模块,配置为根据已调试的输入内容,确定所述目标项目的当前项目版本的项目内容。The project content determination module is configured to determine the project content of the current project version of the target project according to the debugged input content.
  18. 根据权利要求13-17中任意一项所述的装置,其中,所述装置还包括:The device according to any one of claims 13-17, wherein the device further comprises:
    实例生成模块,配置为响应于针对所述课程实验的触发操作,根据所述课程实验的实验内容,生成实验实例;An example generation module configured to generate an experiment instance according to the experimental content of the course experiment in response to the trigger operation for the course experiment;
    界面展示模块,配置为控制第二电子设备展示所述实验实例的操作界面。The interface display module is configured to control the second electronic device to display the operation interface of the experimental example.
  19. 根据权利要求13-18中任意一项所述的装置,其中,所述第一电子设备包括在线教育平台,所述目标课程包括Python编程课程、积木编程课程、人工智能AI编程课程中的任意一种,所述目标项目包括编程项目。The device according to any one of claims 13-18, wherein the first electronic device includes an online education platform, and the target course includes any one of a Python programming course, a building block programming course, and an artificial intelligence AI programming course In this case, the target project includes a programming project.
  20. 一种实验生成装置,应用于第二电子设备,包括:An experiment generating device applied to a second electronic device, comprising:
    课程显示模块,配置为显示待制作的目标课程,所述目标课程包括至少一个课程实验;A course display module configured to display a target course to be produced, the target course including at least one course experiment;
    项目显示模块,配置为在项目引用控件被触发的情况下,显示待选择的至少一个项目;An item display module configured to display at least one item to be selected when the item reference control is triggered;
    实验生成模块,配置为根据所述至少一个项目中被选中的目标项目,向第一电子设备发送实验生成请求,以使所述第一电子设备生成与所述目标课程相关联的课程实验,所述目标项目包括实验标签,所述实验标签配置为指示课程实验中的待编写内容。The experiment generation module is configured to send an experiment generation request to the first electronic device according to the selected target item in the at least one item, so that the first electronic device generates a course experiment associated with the target course, so The target item includes an experiment label configured to indicate content to be authored in a course experiment.
  21. 根据权利要求20所述的装置,其中,所述课程显示模块,配置为显示待制作的目标课程,包括:The device according to claim 20, wherein the course display module is configured to display the target course to be produced, comprising:
    基于所述课程显示模块访问所述第一电子设备,获取所述待制作的目标课程;在所述课程显示模块的显示界面中显示所述待制作的目标课程。Accessing the first electronic device based on the course display module to acquire the target course to be produced; displaying the target course to be produced on a display interface of the course display module.
  22. 根据权利要求20所述的装置,其中,所述项目显示模块还配置为:The device according to claim 20, wherein the item display module is further configured to:
    基于所述项目显示模块检测用户对项目引用控件的点击操作;在检测到用户对项目引用控件的点击操作的情况下,确定项目引用控件被触发。Based on the item display module, the user's click operation on the item reference control is detected; when the user's click operation on the item reference control is detected, it is determined that the item reference control is triggered.
  23. 根据权利要求20所述的装置,其中,所述项目显示模块,配置为在项目引用控件被触发的情况下,显示待选择的至少一个项目,包括:The device according to claim 20, wherein the item display module is configured to display at least one item to be selected when the item reference control is triggered, comprising:
    在项目引用控件被触发的情况下,从所述第一电子设备获取待选择的至少一个项目,在所述项目显示模块的显示界面中显示所述待选择的至少一个项目。When the item reference control is triggered, at least one item to be selected is obtained from the first electronic device, and the at least one item to be selected is displayed on the display interface of the item display module.
  24. 根据权利要求20所述的装置,其中,所述实验生成模块,还配置为:The device according to claim 20, wherein the experiment generating module is further configured to:
    基于所述实验生成模块检测用户对所述待选择的至少一个项目的选中操作;Detecting a user's selection operation on the at least one item to be selected based on the experiment generation module;
    在检测到用户对所述待选择的至少一个项目的选中操作时,确定所述至少一个项目中被选中的目标项目。When a user's selection operation on the at least one item to be selected is detected, a selected target item among the at least one item is determined.
  25. 一种电子设备,包括:An electronic device comprising:
    处理器;processor;
    用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
    其中,所述处理器被配置为调用所述存储器存储的指令,以执行权利要求1至12中任意一项所述的方法。Wherein, the processor is configured to invoke instructions stored in the memory to execute the method according to any one of claims 1-12.
  26. 一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现权利要求1至12中任意一项所述的方法。A computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the method according to any one of claims 1 to 12 is implemented.
  27. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行用于实现权利要求1至12中任一所述的方法。A computer program, comprising computer readable codes, when the computer readable codes are run in the electronic device, the processor in the electronic device executes the method for implementing any one of claims 1 to 12.
PCT/CN2022/072514 2021-07-06 2022-01-18 Experiment generation methods and apparatus, electronic device, storage medium and program WO2023279699A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110763452.5A CN113504903A (en) 2021-07-06 2021-07-06 Experiment generation method and device, electronic equipment and storage medium
CN202110763452.5 2021-07-06

Publications (1)

Publication Number Publication Date
WO2023279699A1 true WO2023279699A1 (en) 2023-01-12

Family

ID=78011456

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/072514 WO2023279699A1 (en) 2021-07-06 2022-01-18 Experiment generation methods and apparatus, electronic device, storage medium and program

Country Status (2)

Country Link
CN (1) CN113504903A (en)
WO (1) WO2023279699A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113504903A (en) * 2021-07-06 2021-10-15 上海商汤智能科技有限公司 Experiment generation method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224303A (en) * 2014-07-02 2016-01-06 北京泺喜文化传媒有限公司 The control method of page display and device
JP2018163546A (en) * 2017-03-27 2018-10-18 カシオ計算機株式会社 Programming device, control program of the same, and method for programming
CN112925515A (en) * 2021-03-11 2021-06-08 亿度慧达教育科技(北京)有限公司 Editing control method, device, equipment and storage medium
CN113504903A (en) * 2021-07-06 2021-10-15 上海商汤智能科技有限公司 Experiment generation method and device, electronic equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040076941A1 (en) * 2002-10-16 2004-04-22 Kaplan, Inc. Online curriculum handling system including content assembly from structured storage of reusable components
US20050216506A1 (en) * 2004-03-25 2005-09-29 Wolfgang Theilmann Versioning electronic learning objects using project objects
CN108665396A (en) * 2018-05-14 2018-10-16 有时数联科技(北京)有限公司 A kind of big data education practical training method and system
CN111612409A (en) * 2020-03-30 2020-09-01 青岛青软实训教育科技股份有限公司 Big data experiment practical training double-project operation system
CN112948055A (en) * 2021-03-04 2021-06-11 华东理工大学 Innovative course experiment automatic management method and system based on cloud computing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224303A (en) * 2014-07-02 2016-01-06 北京泺喜文化传媒有限公司 The control method of page display and device
JP2018163546A (en) * 2017-03-27 2018-10-18 カシオ計算機株式会社 Programming device, control program of the same, and method for programming
CN112925515A (en) * 2021-03-11 2021-06-08 亿度慧达教育科技(北京)有限公司 Editing control method, device, equipment and storage medium
CN113504903A (en) * 2021-07-06 2021-10-15 上海商汤智能科技有限公司 Experiment generation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113504903A (en) 2021-10-15

Similar Documents

Publication Publication Date Title
WO2022088622A1 (en) Learning analysis method and apparatus, and electronic device, storage medium and computer program
WO2021232775A1 (en) Video processing method and apparatus, and electronic device and storage medium
WO2021012583A1 (en) Teaching system and method, electronic device, and storage medium
US20160358489A1 (en) Dynamic learning supplementation with intelligent delivery of appropriate content
CN104035995A (en) Method and device for generating group tags
TW201407564A (en) Interactive response system and question generation method for interactive response system
US20220353338A1 (en) Dynamic enablement of available modes in presentation software
WO2023071067A1 (en) Programming education experimental method and apparatus, and electronic device and storage medium
WO2023279699A1 (en) Experiment generation methods and apparatus, electronic device, storage medium and program
WO2024061119A1 (en) Display method and apparatus for session page, and device, readable storage medium and product
CN114116495A (en) Test method and device, electronic equipment and storage medium
CN111930453A (en) Dictation interaction method and device and electronic equipment
WO2021218194A1 (en) Data processing method and apparatus, electronic device, and storage medium
WO2018010319A1 (en) Method and apparatus for displaying application function
CN113705653A (en) Model generation method and device, electronic device and storage medium
CN114691115A (en) Business process system generation method and device, electronic equipment and storage medium
WO2023134558A1 (en) Interaction method and apparatus, electronic device, storage medium, and program product
CN113378893B (en) Data management method and device, electronic equipment and storage medium
CN111984765B (en) Knowledge base question-answering process relation detection method and device
US20220150290A1 (en) Adaptive collaborative real-time remote remediation
CN109343761B (en) Data processing method based on intelligent interaction equipment and related equipment
US10360807B2 (en) Mobile media creation from any content
Rodrigues Human-Powered Smartphone Assistance for Blind People
CN112966674A (en) Topic explaining method and device and electronic equipment
CN113359979A (en) Control method and device of multimedia equipment, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22836459

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE