"Selfie Tutorial 37" Dan Advanced Precautions

Three kinds of programming thinking (implementation)

As the thinking articles, we introduce a simple and useful test cases, and gradually develop programming thinking:
first learn how to achieve a batch script, learn to process-oriented functions to achieve, and finally learn to achieve the object-oriented class.


Each case story corresponding to three implementations

Each article, there is a case story, on behalf of the actual test scenarios story,
some test cases, in fact, some "batch script" to achieve the most appropriate,
or "process-oriented function" to achieve the most appropriate, or to say "object-oriented class" achieve more appropriate,
but faith perspective thinking training program,
for the purpose of the process is a function of: "What function can be used to encapsulate under the"
process-oriented aim is: "everything can be classified as"
certainly can be forced to use process for the form of the function or to implement process-oriented class form.
So these three implementations, I will step by step to cover,
that is, each case story the three ways.

Python basic syntax to use up

The basic syntax of Python, this tutorial does not describe in detail,
but the daily programming time, will definitely involve the following statements, including:
Import statement introducing the other modules,
for loop,
IF ... the else ... Several combinational logic judgment statement,
string handling and manipulation statements,
opening and closing statements, file
try ... except ... statements, etc.,
which are also commonly used statement,
the daily programming time, be sure to harden their functions to be achieved ,
these different statements into your program code to go,
so you can use them to understand and remember the basic syntax of Python.

More and better original article, please visit the official website: www.zipython.com

Original link: https://www.zipython.com/#/detail?id=a9a37bca1f374c4fa74e9f94b0411e75
also concerned about the "military scattered people" micro-channel subscription number, ready to accept the article push.

Guess you like

Origin www.cnblogs.com/zipython/p/12431058.html
37