函数的嵌套与调用

来源:互联网 发布:java 方法命名规范 编辑:程序博客网 时间:2024/05/21 11:18

![In [20]: #count已经变成了全局变量

In [21]: def fun1():
…: print “fun1 函数正在被调用。。。。”
…: def fun2():
…: print “fun2函数正在被调用。。。。”
…: fun2()
…:

In [22]: fun1()
fun1 函数正在被调用。。。。
fun2函数正在被调用。。。。

In [23]: #函数的嵌套与调用
](http://img.blog.csdn.net/20161125224056817)

0 0
原创粉丝点击