python

From:http://interactivepython.org/courselib/static/pythonds/Introduction/DefiningFunctions.html

Defining Functions

 For example:

>>> def square(n):
...    return n**2
...
>>> square(3)
9
>>> square(square(3))
81
>>>
原文地址:https://www.cnblogs.com/keepSmile/p/7880251.html