<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>crenlif</author_name>
  <author_url>https://blog.hatena.ne.jp/crenlif/</author_url>
  <blog_title>ドグマを探しに</blog_title>
  <blog_url>https://crenlif.hatenadiary.org/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>メモ。 『「逆から」1個置きに抽出』というの初めて知った。 回文の判定 - テックノート＠ama-ch ・はじPyだとこう書ける(p.96) &gt;&gt;&gt; str = u&quot;スマートなトーマス&quot; &gt;&gt;&gt; str == str[::-1] True こっちの方が簡単で読みやすい！ スライスで3つめの値を設定すると「いくつおきに値を抽出するか」指定できます。 ここで負の値を指定すると、「逆から」いくつおきに抽出するか指定できます。str[::-1]と書けば、文字列などの反転が簡単にできます。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcrenlif.hatenadiary.org%2Fentry%2F20090419%2F1240110144&quot; title=&quot;文字列の反転 - ドグマを探しに&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>2009-04-19 12:02:24</published>
  <title>文字列の反転</title>
  <type>rich</type>
  <url>https://crenlif.hatenadiary.org/entry/20090419/1240110144</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
