<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Iterator on 每日拍拍</title>
    <link>https://dailypypy.org/tags/iterator/</link>
    <description>Recent content in Iterator on 每日拍拍</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-tw</language>
    <copyright>© 2026 每日拍拍</copyright>
    <lastBuildDate>Wed, 25 Mar 2026 12:00:00 +0800</lastBuildDate><atom:link href="https://dailypypy.org/tags/iterator/index.xml" rel="self" type="application/rss+xml" />
    <follow_challenge>
      <feedId>155076163427069952</feedId>
      <userId>154825760438254592</userId>
    </follow_challenge>
    
    
    <item>
      <title>Python Generators/Yield 完全攻略：惰性運算的藝術</title>
      <link>https://dailypypy.org/learn/python-generators/</link>
      <pubDate>Wed, 25 Mar 2026 12:00:00 +0800</pubDate>
      
      <guid>https://dailypypy.org/learn/python-generators/</guid>
      <description>&lt;!---
1024x620
prompt: masterpiece, best quality, highres illustration, green eyes, white off-shoulder shirt, 1girl, flat color, soft coral background, simple design, black hair, leaning forward, curious expression, upper body, cute anime girl, japanese anime style, soft shading, detailed eyes, black short skirt, infinity symbol icon, flowing data stream, sparkles, playful smile
negative prompt: worst quality, bad eye, bad hand, extra limbs, manga, multiple views, monochrome, text, signature
---&gt;

&lt;h2 class=&#34;relative group&#34;&gt;一、前言 
    &lt;div id=&#34;一前言&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700&#34;
            style=&#34;text-decoration-line: none !important;&#34; href=&#34;#%e4%b8%80%e5%89%8d%e8%a8%80&#34; aria-label=&#34;定位點&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;你有沒有遇過這種場景：要處理一個幾 GB 的 log 檔，結果 Python 一口氣把整個檔案讀進記憶體，然後……記憶體爆了 💥&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://dailypypy.org/learn/python-generators/featured.png" />
    </item>
    
  </channel>
</rss>
