<?xml version="1.0" encoding="UTF-8"?>
<!--generator='jetpack-15.8'-->
<!--Jetpack_Sitemap_Buffer_News_XMLWriter-->
<?xml-stylesheet type="text/xsl" href="//savingking.com.tw/news-sitemap.xsl"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
 <url>
  <loc>https://savingking.com.tw/blog/post/typing-namedtuple</loc>
  <lastmod>2026-07-02T08:34:34Z</lastmod>
  <news:news>
   <news:publication>
    <news:name>儲蓄保險王</news:name>
    <news:language>zh-tw</news:language>
   </news:publication>
   <news:title>Python `typing.NamedTuple` (`collections.namedtuple`) 與 `typing.Literal` 教學 — 用型別「防止錯配」; StripRule = NamedTuple(&amp;quot;StripRule&amp;quot;, [(&amp;quot;regex&amp;quot;, re.Pattern), (&amp;quot;flag&amp;quot;, str)]) vs StripRule = namedtuple(&amp;quot;StripRule&amp;quot;, [&amp;quot;regex&amp;quot;, &amp;quot;flag&amp;quot;])</news:title>
   <news:publication_date>2026-07-01T11:05:33Z</news:publication_date>
   <news:genres>Blog</news:genres>
  </news:news>
 </url>
</urlset>
