函数的嵌套调用
一个函数里面,又调用了另外一个函数函数,就是函数的嵌套调用
def test1():
return("*" * 10)
print(test1())
输出结果为:
**********
def test1():
return("*" *10)
def test2():
print("+" *10)
print(test1())
return("-" *10)
print(test2())
输出结果为:
++++++++++
**********
----------