[python]Function
Function is a code block can repeatedly called to accomplish a process.
def function_name(para1,para2,...)
code
reture value
use return can pass the result to the variable if
var = function_name(par1, par2, ...)
Function is a code block can repeatedly called to accomplish a process.
def function_name(para1,para2,...)
code
reture value
use return can pass the result to the variable if
var = function_name(par1, par2, ...)