【《Python編程: 從入門到實踐》習題答案--第八章:】

# 8-1 消息 : 編寫一個名爲display_message() 的函數, 它打印一個句子, 指出你在本章學的是什麼。 # 調用這個函數, 確認顯示的消息正確無誤。 def display_message(): print('本章學習內容:def(函數)') display_message() # 8-2 喜歡的圖書 : 編寫一個名爲favorite_book() 的函數, 其中包含一個
相關文章
相關標籤/搜索