<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hanabusa-snow</author_name>
  <author_url>https://blog.hatena.ne.jp/hanabusa-snow/</author_url>
  <blog_title>プログラ生活</blog_title>
  <blog_url>https://www.pon-x.jp/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>www.pon-x.jp 前回の続きで今回はリストのちょっとした応用です。 文字列操作 自然言語処理を扱うときなど、文字列をハンドリングする機会があります。 今回はその基礎の基礎です。 区切り文字でリストにする まず、スペース区切りでリストにしてみます。 s = &quot;あ い う え お&quot; s.split() スペース以外ならsllitの中に区切り記号をいれてあげればOKです。 s = &quot;あ,い,う,え,お&quot; s.split(&quot;,&quot;) 逆に、リストを文字列にする もちろん上記の逆も可能です。 l = [&quot;あ&quot;, &quot;い&quot;, &quot;う&quot;, &quot;え&quot;, &quot;お&quot;] &quot;&quot;.join(l) joinに引数を与えると…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.pon-x.jp%2Fentry%2F2021%2F09%2F16%2F113147&quot; title=&quot;【Python連載】リストを使った文字列操作-018- - プログラ生活&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/h/hanabusa-snow/20210916/20210916112439.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-09-16 11:31:47</published>
  <title>【Python連載】リストを使った文字列操作-018-</title>
  <type>rich</type>
  <url>https://www.pon-x.jp/entry/2021/09/16/113147</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
