练习三十四:python基础函数调用

 直接看个例子吧

1 def hello_python():
2     print("python3.x")
3 def three_hello():
4     for i in range(3):
5         hello_python() #回调hello_python函数
6 if __name__ == "__main__":
7     three_hello()

执行结果:

python3.x
python3.x
python3.x

 

posted @ 2018-12-01 22:02  阳光宝贝-沐沐  阅读(198)  评论(0编辑  收藏  举报