Python 练习实例34
题目:练习函数调用。
程序分析:无。
程序源代码:
#!/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()
w℡3℡x℡u℡e.com提供本在线速查手册,请勿盗用!
以上实例输出结果为:
hello world hello world hello world
w℡3℡x℡u℡e.com提供本在线速查手册,请勿盗用!