--- id: 5e9a093a74c4063ca6f7c165 title: Python 簡介 challengeType: 11 videoId: PrQV9JkLhb4 bilibiliIds: aid: 805597530 bvid: BV1634y1S7gD cid: 409023550 dashedName: python-introduction --- # --description-- *在視頻中我們使用的編輯器工具是在 notebook.ai 這個平臺,你也可以選擇用其他的平臺,比如說 Google Colab 也是一個不錯的選擇。* 更多資源: - [在 GitHub 平臺的 Notebooks](https://github.com/ine-rmotr-curriculum/ds-content-python-under-10-minutes) - [如何使用 Google Colab 來打開 GitHub 上的 Notebooks](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb) # --question-- ## --text-- 我們如何在 Python 函數中定義代碼塊? ## --answers-- 我們可以在代碼的每個新區塊的兩側使用一組大括號。 --- 我們使用縮進,通常是右對齊的 4 個空格。 --- 我們不用指示出代碼塊。 --- 我們可以使用大括號或縮進來指示出代碼塊。 ## --video-solution-- 2