<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inudaisho</author_name>
  <author_url>https://blog.hatena.ne.jp/inudaisho/</author_url>
  <blog_title>メモ@inudaisho</blog_title>
  <blog_url>https://inudaisho.hatenablog.com/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>ただのメモ。 Python3 の rangeは間隔を指定できるが、-1の間隔も指定できる。つまり降順で0まで舐めるときこう書ける。 for i in range(x,-1,-1): #処理 リストも同じように間隔を指定できるので(スライス)、同じことをやろうとして手癖でこう書くと aA[x:-1:-1] 期待したものがでてこない。リストで-1は末尾なので、-1まで-1するのではなく、-1(末尾)と比較してすぐ終わってしまい、無が返ってくる。リストの場合こう書かないといけない。 aA[x::-1] ちょっとハマってしまってこれがわかったとき、とりあえずこう書いてしのいだ。 def parseZe…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finudaisho.hatenablog.com%2Fentry%2F2018%2F12%2F26%2F222718&quot; title=&quot;Python3 のリストとrangeの降順 - メモ@inudaisho&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>https://images-fe.ssl-images-amazon.com/images/I/51%2Bxv65qdBL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-12-26 22:27:18</published>
  <title>Python3 のリストとrangeの降順</title>
  <type>rich</type>
  <url>https://inudaisho.hatenablog.com/entry/2018/12/26/222718</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
