def?hello_world():
????print?'hello?world'def?three_hellos():
????for?i?in?range(3):
????????hello_world()if?__name__?==?'__main__':
????three_hellos()
1 回答

tanhouyusheng
TA貢獻94條經驗 獲得超59個贊
def?hello_world():#這個函數的意思就是打印hello world
????print?'hello?world'
def?three_hellos():#這個函數的意思就是運行上邊的打印函數
????for?i?in?range(3):
????????hello_world()
if?__name__?==?'__main__':
#這是主函數,意思是調用那個打印三遍的函數,過程是先調用那個打印三遍的函數,然后那個函數調用三次打印函數
????three_hellos()
添加回答
舉報
0/150
提交
取消