码迷,mamicode.com
首页 > 编程语言 > 详细

第22日python学习函数前引和递归

时间:2019-09-15 10:30:37      阅读:68      评论:0      收藏:0      [点我收藏+]

标签:递归   int   print   python学习   很多   个人   pre   python   test   

函数前引用:函数即变量,需要在引用前定义好。

def test ():
print("from test")
test1()

def test1():
print("from test1")
test()


def test ():
print("from test")
test1()
test()
def test1():
print("from test1")

递归:例如:问路的事情(问了很多人),最后一个人知道了在回传回来

第22日python学习函数前引和递归

标签:递归   int   print   python学习   很多   个人   pre   python   test   

原文地址:https://www.cnblogs.com/jianchixuexu/p/11521310.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!