天天看點

執行個體034:調用函數

題目:練習函數調用。

"""
學習中遇到問題沒人解答?小編建立了一個Python學習交流QQ群,可掃文末的推廣進群哦
尋找有志同道合的小夥伴,互幫互助,群裡還有不錯的視訊學習教程和PDF電子書!
"""
def hello(i):
    print('Hello World!', i)


def helloAgain():
    for i in range(2):
        hello(i)


if __name__ == '__main__':
    helloAgain()