Python acquaintance of basic understanding of programming methods

For solve some problems with the computer, there is a basic method of programming, is divided into six steps, its analysis and implementation process is as follows:

(1) analysis of the problem: the use of computers to solve the problem requires a combination of the level of development and degree of computer technology human problem consideration, under certain technical and social conditions, analyze a problem most economical and reasonable calculation section, thus achieving program .

(2) division boundary: identify problems in calculating portion based on the Boundary further divided, i.e., the input data specific problem, and the output data of the data processing requirements.

(3) design algorithm: algorithm design I think is the clearest and most purposeful, as far as we are for the novice entering the python, is how to choose the most convenient and simple, the most efficient was able to solve the problem of good A program operation algorithm, the key is that they can easily understand, easy to get started.

(4) programming: According to the IPO description and algorithm design, you can write a program clearly understood (as the program is written in their own, so first of all have to understand yourself, and then be able to read what they write is necessary to learn appropriate to add some comments)

(5) Start test: write a good program to save the file, and then run the program. When the program is complex, difficult to ensure that the program can be written once to run directly and accurately, so at this stage the main task is to trap error checking to find out the problems in the program as much as possible

(6) upgrade and maintenance: any program that has a life cycle, there are many events will cause the program to the end of life. So, the problem with the use of variables scene, input and output requirements, the program also need to continue to maintain and upgrade.

Guess you like

Origin www.cnblogs.com/jackyfive/p/11519692.html