<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>DS_REG_20170701</author_name>
  <author_url>https://blog.hatena.ne.jp/DS_REG_20170701/</author_url>
  <blog_title>主に自分のメモ用途。</blog_title>
  <blog_url>https://longtweets.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>Pythonのリストや文字列にはスライスという機能が備わっているが、 基本的なところしか押さえてなかったので、もう少し踏み込んでみた。 書籍やサイトなども見てみたが、自分が納得できる説明を見かけなかったので、挙動から自分なりに仕様を考えてみた。 ここでは、リストで考えていく。文字列もおそらく同じ挙動だと思う。 lsというリストがあるとする。 スライスは、 ls[A:B:C] で表される。 なお、A,B,Cの引数やセミコロンは指定されなかったり省略されることがある。 （第１セミコロンすらない場合は、そもそもスライスではない。） まず、大まかな仕様についていうと、 スライスには第１引数（上記のA）…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flongtweets.hatenablog.com%2Fentry%2F2018%2F09%2F28%2F081834&quot; title=&quot;Pythonのスライスの仕様について自分なりに考えた。 - 主に自分のメモ用途。&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://cdn-ak.f.st-hatena.com/images/fotolife/D/DS_REG_20170701/20180928/20180928072650.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-09-28 08:18:34</published>
  <title>Pythonのスライスの仕様について自分なりに考えた。</title>
  <type>rich</type>
  <url>https://longtweets.hatenablog.com/entry/2018/09/28/081834</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
