[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, ...)

 

posted @ 2016-06-05 11:11  Symmetry  阅读(184)  评论(0)    收藏  举报