Python 關鍵字
創建并執行函數:
def my_function(): print("Hello from a function") my_function()
運行實例
def 關鍵字用于創建(或定義)函數。
請在我們的 Python 函數 教程中學習更多有關函數的知識。