CN114217903A - Python online interactive programming method and platform - Google Patents
Python online interactive programming method and platform Download PDFInfo
- Publication number
- CN114217903A CN114217903A CN202111393349.2A CN202111393349A CN114217903A CN 114217903 A CN114217903 A CN 114217903A CN 202111393349 A CN202111393349 A CN 202111393349A CN 114217903 A CN114217903 A CN 114217903A
- Authority
- CN
- China
- Prior art keywords
- python
- platform
- interactive programming
- online interactive
- codes
- Prior art date
- Legal status (The legal status 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 status listed.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45504—Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
- G06F9/45508—Runtime interpretation or emulation, e g. emulator loops, bytecode interpretation
- G06F9/45512—Command shells
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
- G06F8/315—Object-oriented languages
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/544—Buffers; Shared memory; Pipes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/547—Remote procedure calls [RPC]; Web services
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09B—EDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
- G09B19/00—Teaching not covered by other main groups of this subclass
- G09B19/0053—Computers, e.g. programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/545—Gui
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/549—Remote execution
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Entrepreneurship & Innovation (AREA)
- Educational Administration (AREA)
- Educational Technology (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a Python online interactive programming method and a platform, which comprises the following steps: s1, inputting Python codes in the webpage of the browser, and after clicking an 'operation' button, sending the codes to a server; s2, the server transmits the codes to a Python interpreter through an API (application programming interface), and receives a return result; s3, the API executes the external instruction through the subprocess, and acquires the return information of the execution of the subprocess through the input/output/error pipeline; s4, the server sends the returned result to the browser, and the browser is responsible for analyzing and presenting the result; the Python online interactive programming platform is developed in a B/S architecture mode. The invention has the advantages that: the original front-end preprocessing technology and the front-end secondary analysis technology belong to the technical processing category of the front end, do not cause burden to a server, and ensure the stability and the safety of a system; the students can find errors more easily and solve problems; the teacher can define course content by self, so that the method is suitable for personalized teaching and convenient for popularization and use of a platform in the later period.
Description
Technical Field
The invention relates to the field of internet programming, in particular to a Python online interactive programming method and a Python online interactive programming platform.
Background
In recent years, the preferred programming language Python for artificial intelligence has entered into the information technology textbooks of high school, middle school and primary school in Zhejiang, Shandong, Beijing and other places. Through the study of Python language, the logical thinking ability and creativity of students can be cultivated, students with special characteristics in programming can be discovered and selected as soon as possible, and talents in artificial intelligence can be reserved for the country. It is anticipated that the Python language will become a hot and key module in the information technology discipline for a long time now or even in the future.
We can retrieve some programming platform for Python by the search engine. According to investigation, most of the platforms have no matched Python courses, and only one Python experimental environment is provided. Although few domestic Python programming platforms provide corresponding Python courses, most of the course contents are only some code examples and do not conform to information technology teaching in the beginning. Moreover, most of the platforms are non-open source, especially background management systems, which are closed to the outside. Teachers cannot use the background management system to upload personalized courses developed by the teachers, and cannot be really applied to daily teaching. Moreover, practical tests show that the Python experimental environment or the programming platform cannot well support two functions, namely input and sleep.
Disclosure of Invention
The technical problem to be solved by the invention is that a Python textbook course matched with the development of a blue book by making an interactive Python programming platform and taking a junior middle school information technology teaching material is necessary. This platform will be entirely proprietary intellectual property and public. In the field of education, a large number of information technology teachers can freely, freely and individually use the platform. The platform provides an effective way for primary and middle school students to learn Python.
In order to solve the technical problems, the technical scheme provided by the invention is as follows: a Python online interactive programming method and a platform thereof comprise the following steps:
s1, inputting Python codes in the webpage of the browser, and after clicking an 'operation' button, sending the codes to a server;
s2, the server transmits the codes to a Python interpreter through an API (application programming interface), and receives a return result;
s3, the API executes the external instruction through the subprocess, and acquires the return information of the execution of the subprocess through the input/output/error pipeline;
s4, the server sends the returned result to the browser, and the browser is responsible for analyzing and presenting the result;
the Python online interactive programming platform is developed in a B/S framework mode, a front end and a rear end are arranged in the B/S framework, the front end is used for displaying courses, providing an interactive programming environment and presenting code running results, and the Python online interactive programming platform structurally comprises a course content display area, a code compiling area, a running effect area and an error prompt area; the back end manages the codes and courses in the platform, and the back end structurally comprises a code processing module and a course management module.
Compared with the prior art, the invention has the advantages that: 1) the platform can support input functions and better embody the characteristics of interactive programming by the original front-end preprocessing technology; the platform can support a sleep function under a time module by the aid of an original front-end secondary analysis technology, and a program running process can be better reflected; the original front-end preprocessing technology and the original front-end secondary analysis technology belong to the technical processing category of the front end, and can not cause burden to the server, thereby ensuring the stability and the safety of the system;
2) the error prompt can be output in real time in Chinese and English contrast, so that students can find errors more quickly and easily to solve the problems;
3) the support of high grammar brightness enables students to master keywords in grammar more easily;
4) developing courses matched with the platform, wherein the contents are in accordance with the cognitive level of junior students in the local area;
5) the independently developed course background management system enables teachers to define course contents in a self-defined manner, is suitable for personalized teaching, and facilitates popularization and use of a later platform;
6) by using the learning platform, students or teachers can use the learning platform only by connecting a computer and opening a browser without installing any software or plug-in. If the platform is deployed on the public network, students can use the platform at home to learn Python knowledge. Of course, if the platform is deployed on a server inside a school, students can use the platform only by accessing a local area network in the school.
Furthermore, subProcess is selected as API.
Furthermore, the course content display area is used for displaying course content, and after the cursor is moved to the leftmost position of the course content display area on the interface, a course list is popped up.
Furthermore, the code processing module is used for analyzing, executing and feeding back operation results of the codes.
Furthermore, the course management module performs the operations of adding, deleting, modifying and searching courses, wherein the operations comprise respectively managing the chapter titles and the article contents of the courses:
1) adding, deleting, inquiring and modifying the chapter title through a chapter title maintenance menu;
2) adding, deleting, inquiring and modifying the section titles below a certain chapter through a section title maintenance menu;
3) the existing articles are modified or deleted through an article maintenance menu.
Further, the Python online interactive programming platform automatically displays all the added articles in an article modification function interface in a drop-down list form; meanwhile, chapters without articles added are automatically shown in an article newly-added functional interface in a drop-down list mode, and SQL sentences are optimized correspondingly through a database layer.
Drawings
FIG. 1 is a schematic diagram of a Python online interactive programming method and a working flow of a platform.
FIG. 2 is a schematic diagram of a Python online interactive programming method and platform.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
In specific implementation, as shown in the embodiment shown in fig. 1, the present invention provides a Python online interactive programming method and a platform, comprising the following steps:
s1, inputting Python codes in the webpage of the browser, and after clicking an 'operation' button, sending the codes to a server;
s2, the server transmits the codes to a Python interpreter through an API (application programming interface), and receives a return result;
s3, the API executes the external instruction through the subprocess, and acquires the return information of the execution of the subprocess through the input/output/error pipeline;
and S4, sending the returned result to the browser by the server, wherein the browser is responsible for analyzing and presenting the result.
Further, as shown in fig. 1, the API selects a subProcess, and the subProcess may execute the external instruction through a sub-process.
Further, as shown in fig. 2, in the embodiment, the Python online interactive programming platform is developed in a B/S architecture manner, a front end and a back end are arranged in the B/S architecture, the front end is used for displaying courses, providing an interactive programming environment, and presenting a code running result, and the B/S architecture includes a course content display area, a code writing area, a running effect area, and an error prompt area; the back end manages the codes and courses in the platform, and the back end structurally comprises a code processing module and a course management module. The course content display area is used for displaying course content, and after the cursor is moved to the leftmost position of the course content display area on the interface, a course list is popped up.
Furthermore, the code processing module is used for analyzing, executing and feeding back operation results of the codes.
Furthermore, the course management module performs the operations of adding, deleting, modifying and searching courses, wherein the operations comprise respectively managing the chapter titles and the article contents of the courses:
1) adding, deleting, inquiring and modifying the chapter title through a chapter title maintenance menu;
2) adding, deleting, inquiring and modifying the section titles below a certain chapter through a section title maintenance menu;
3) the existing articles are modified or deleted through an article maintenance menu.
When an article is newly added, the user is likely not to add the articles of all chapters at one time. In fact, the user does not need to be concerned about which articles have been added or which articles need to be added. The system will automatically present all the added articles in the form of a drop-down list on the "article modification" function interface. The two functions of article newly-adding and article modifying are relatively independent and mutually exclusive, and the condition of user operation errors cannot occur.
The first embodiment is as follows:
print('hello')
a=input('age:')
print(a)
b=input('name:')
print(b)
example two:
example three:
example four:
example five:
although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made in the above embodiments by those of ordinary skill in the art without departing from the principle and spirit of the present invention.
Claims (6)
1. A Python online interactive programming method and a platform are characterized by comprising the following steps:
s1, inputting Python codes in the webpage of the browser, and after clicking an 'operation' button, sending the codes to a server;
s2, the server transmits the codes to a Python interpreter through an API (application programming interface), and receives a return result;
s3, the API executes the external instruction through the subprocess, and acquires the return information of the execution of the subprocess through the input/output/error pipeline;
s4, the server sends the returned result to the browser, and the browser is responsible for analyzing and presenting the result;
the Python online interactive programming platform is developed in a B/S framework mode, a front end and a rear end are arranged in the B/S framework, the front end is used for displaying courses, providing an interactive programming environment and presenting code running results, and the Python online interactive programming platform structurally comprises a course content display area, a code compiling area, a running effect area and an error prompt area; the back end manages the codes and courses in the platform, and the back end structurally comprises a code processing module and a course management module.
2. The Python online interactive programming method and platform as claimed in claim 1, wherein: the API selects subProcess.
3. The Python online interactive programming method and platform as claimed in claim 1, wherein: the course content display area is used for displaying course content, and a course list is popped up after the cursor is moved to the leftmost side of the course content display area on the interface.
4. The Python online interactive programming method and platform as claimed in claim 1, wherein: the code processing module is used for analyzing, executing and feeding back operation results.
5. The Python online interactive programming method and platform as claimed in claim 1, wherein: the course management module is used for adding, deleting, modifying and searching courses, wherein the operations comprise the steps of respectively managing chapter titles and article contents of the courses:
1) adding, deleting, inquiring and modifying the chapter title through a chapter title maintenance menu;
2) adding, deleting, inquiring and modifying the section titles below a certain chapter through a section title maintenance menu;
3) the existing articles are modified or deleted through an article maintenance menu.
6. The Python online interactive programming method and platform as claimed in claim 1, wherein: the Python online interactive programming platform automatically displays all the added articles in an article modification function interface in a drop-down list mode; meanwhile, chapters without articles added are automatically shown in an article newly-added functional interface in a drop-down list mode, and SQL sentences are optimized correspondingly through a database layer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111393349.2A CN114217903A (en) | 2021-11-23 | 2021-11-23 | Python online interactive programming method and platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111393349.2A CN114217903A (en) | 2021-11-23 | 2021-11-23 | Python online interactive programming method and platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114217903A true CN114217903A (en) | 2022-03-22 |
Family
ID=80697893
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111393349.2A Withdrawn CN114217903A (en) | 2021-11-23 | 2021-11-23 | Python online interactive programming method and platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114217903A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116468577A (en) * | 2023-03-20 | 2023-07-21 | 中慧云启科技集团有限公司 | Teaching practical training management system based on B/S architecture |
-
2021
- 2021-11-23 CN CN202111393349.2A patent/CN114217903A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116468577A (en) * | 2023-03-20 | 2023-07-21 | 中慧云启科技集团有限公司 | Teaching practical training management system based on B/S architecture |
CN116468577B (en) * | 2023-03-20 | 2024-03-08 | 中慧云启科技集团有限公司 | Teaching practical training management system based on B/S architecture |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20150242974A1 (en) | Adaptive e-learning engine with embedded datagraph structure | |
Stancheva et al. | A model for generation of test questions | |
Li et al. | Mapping the taxonomy of critical thinking ability in EFL | |
CN113886567A (en) | Teaching method and system based on knowledge graph | |
Snow et al. | Leveraging evidence-centered design to develop assessments of computational thinking practices | |
Mitrovic et al. | Teaching database design with constraint-based tutors | |
Yin et al. | An api learning service for inexperienced developers based on api knowledge graph | |
CN114217903A (en) | Python online interactive programming method and platform | |
Grévisse et al. | An SKOS-based vocabulary on the swift programming language | |
Bothma et al. | A taxonomy of user guidance devices for e-lexicography | |
Laursen et al. | Using an AD-HOC corpus to write about emerging technologies for technical writing and translation: The case of search engine optimization | |
Kohlhase et al. | Re examining the MKM value proposition: from math web search to math web re search | |
Wang et al. | Cognitive Efforts in Using Integrated Models of Business Processes and Rules. | |
Arhar Holdt et al. | Corpus-based resources for L1 teaching: The case of Slovene | |
García Sánchez et al. | Lifelong learning and ESP vocabulary: Reflections in telecommunications and ICT | |
Zhekova et al. | Automated Extraction of Values of Quantitative Indicators to a Quality Evaluation System Using Natural Language Analysis Tools. | |
Yao | Multilayer model for on-line learning resources based on cognitive load theory | |
Xue | Towards automated writing evaluation: A comprehensive review with bibliometric, scientometric, and meta-analytic approaches | |
Pereira et al. | Choosing grammars to support language processing courses | |
Scotton | Supporting delivery of adaptive hypermedia | |
Araújo et al. | Creating Learning Resources based on Programming concepts | |
Lecailliez et al. | Construction of a Knowledge Map-based System for Personalized Second Language Learning | |
Anthony | Addressing the Challenges of Data-Driven Learning through Corpus Tool Design–In Conversation with Laurence Anthony | |
Rodrigues et al. | BPM2Text: A language independent framework for Business Process Models to Natural Language Text | |
Krosnick | Improving Web Automation Tools through UI Context and Demonstration |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20220322 |