freeCodeCamp/curriculum/challenges/chinese-traditional/08-data-analysis-with-python/data-analysis-with-python-c.../python-introduction.md

48 lines
1.2 KiB
Markdown

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