Python第三周 函数详解

def 函数名():

  ”””注释说明“”“”

  执行逻辑体

  return 返回值

定义不带参数的函数

带参数的函数

默认参数

猜你喜欢

转载自www.cnblogs.com/zhangmingda/p/9036517.html
今日推荐