<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dungeonneko</author_name>
  <author_url>https://blog.hatena.ne.jp/dungeonneko/</author_url>
  <blog_title>Hello World / plɹoM ollǝH</blog_title>
  <blog_url>https://dungeonneko.hatenablog.com/</blog_url>
  <categories>
    <anon>Uncategorized</anon>
  </categories>
  <description>反転したリストを複数回使うときにハマった a = reversed([1, 2, 3]) # イテレータを返す for x in a: print(x) for x in a: print(x) # ここは呼ばれない reverseなどでリスト自体を反転させておくか a = [1, 2, 3] a.reverse() for文ごとにreversedを呼べばOK a = [1, 2, 3] for x in reversed(a): print(x) for x in reversed(a): print(x) ちなみにsortedはリストを返す模様</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdungeonneko.hatenablog.com%2Fentry%2F2018%2F01%2F17%2F154741&quot; title=&quot;pythonのreversedはイテレータを返す - Hello World / plɹoM ollǝH&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-01-17 15:47:41</published>
  <title>pythonのreversedはイテレータを返す</title>
  <type>rich</type>
  <url>https://dungeonneko.hatenablog.com/entry/2018/01/17/154741</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
