当前位置:K88软件开发文章中心编程语言PythonPython01 → 文章内容

练习函数调用。

减小字体 增大字体 作者:佚名  来源:网上搜集  发布时间:2019-1-6 1:23:08

无。

实例


#!/usr/bin/python

# -*- coding:
UTF-8 -*-
def hello_world():
print 'hello world'def three_hellos():
for i in range(3):
hello_world()if __name__ == '__main__':
three_hellos()

以上实例输出结果为:

hello worldhello worldhello world

练习函数调用。