Saturday Leisure afternoon, see the blog Park a number of great gods technology stickers. As a pupil who do not understand anything, but also opened their own blog, later can be installed in the X into a pseudo-great God. The first piece of this afternoon learned the basics of Python:
1. Process-oriented programming: in Python, the process is not much different from the function, but it also requires def to be defined, but the process has no return value.
Def Guocheng ():
Print (' I am the process ')
The above definition is a procedure, there is no return value, only the relevant logic inside the function.
Call the above procedure: A=guocheng () so that it can be called, if you print a on the panel, none is displayed because the procedure has no return value.
2. Functional Programming:
To define a function:
def Funciton ():
Print ("I am a function")
Return ' I am the returned value of the function '
Call Function:
B=function (), and then the B printed on the panel, the string "I am the return value of the function" appears.
Just started to learn, feel write is particularly simple things, haha.
Python-oriented process-and functional programming