Back to Browse

【用VSCode學習】Python入門 #12 Python 中的迭代器

28 views
Jul 31, 2025
6:54

本影片說明了 Python 中的迭代器。 您可以通過在 Visual Studio Code 中預覽每個範例來學習。 ✅ 在此訂閱頻道 https://youtube.com/channel?sub_confirmation=1 📝 部落格網址 https://codesparklab.com/cmn-TW/python-introduction/python-iterator 💡 本系列的播放清單 https://www.youtube.com/playlist?list=PL0Yv_lpS_nr3i54APGx4XJJQRwdSQ4EXH 🕐 視頻內容 00:00 開始 00:34 Python 中的迭代器 / 概述 00:48 - 什麼是迭代器? 01:39 - 與可迭代物件的區別 02:11 - 檢查方法: 02:37 - for 迴圈與迭代器的關係 03:04 - 建立自訂迭代器 03:36 - 迭代器與生成器的區別,以及什麼時候該使用哪一個 04:09 - 迭代器(類別)與生成器(函式)的差異 05:19 - 可用於迭代器的標準函式庫:`itertools` 05:49 - 迭代器的應用場景 #Python #基本概念

Download

0 formats

No download links available.

【用VSCode學習】Python入門 #12 Python 中的迭代器 | NatokHD