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()
以上實例輸出結果為:
hello world hello world hello world