<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aisakakun</author_name>
  <author_url>https://blog.hatena.ne.jp/aisakakun/</author_url>
  <blog_title>週末副業記</blog_title>
  <blog_url>https://infoaisaka.hatenablog.com/</blog_url>
  <categories>
    <anon>その他プログラミング</anon>
  </categories>
  <description>リスト内の文字列を結合・置換する方法、逆に文字列をリスト化する方法について述べていきます。 リスト内文字列の結合・置換 文字列の結合 文字列の置換 文字列のリスト化 最後に リスト内文字列の結合・置換 Pythonによる文字列の置換です。競技プログラミングなどでも頻出です。 文字列の結合 例えば、 list=[&quot;I&quot;,&quot;love&quot;,code&quot;] というリストを list = &quot;I,love,code&quot; というように&quot;,&quot;で区切りたい場合、 &quot;&quot;.join() を使用します。以下のように記述します。 &quot;,&quot;.join(list) そうすると 'I,love,Gold' と出力できます。 文字列の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfoaisaka.hatenablog.com%2Fentry%2Fliststr&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://blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-02-11 18:46:59</published>
  <title>リスト内文字列の結合・置換、文字列のリスト化【Python】</title>
  <type>rich</type>
  <url>https://infoaisaka.hatenablog.com/entry/liststr</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
