def 函数名():
”””注释说明“”“”
执行逻辑体
return 返回值
定义不带参数的函数
带参数的函数
默认参数
Python第三周 函数详解
原文:https://www.cnblogs.com/zhangmingda/p/9036517.html