<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kaisk</author_name>
  <author_url>https://blog.hatena.ne.jp/kaisk/</author_url>
  <blog_title>keisukeのブログ</blog_title>
  <blog_url>https://kaisk.hatenadiary.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>Pythonのstringには.format()というフォーマット指定子のメソッドが用意されています． C言語のsprintfをするときのように，文字列に他の文字を埋め込みたいときに使うやつです． 例えば，次のように使います： &gt;&gt;&gt; a = 'hoge' &gt;&gt;&gt; b = 123 &gt;&gt;&gt; c = 3.14 &gt;&gt;&gt; # format指定子 &gt;&gt;&gt; print('a is {0}, b is {1}, and c is {2}.'.format(a,b,c)) &gt;&gt;&gt; # %指定子 &gt;&gt;&gt; print('a is %s, b is %d, and c is %f.' % (a,b,c)) 個人的に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkaisk.hatenadiary.com%2Fentry%2F2014%2F11%2F25%2F144621&quot; title=&quot;Python format string - keisukeのブログ&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>2014-11-25 14:46:21</published>
  <title>Python format string</title>
  <type>rich</type>
  <url>https://kaisk.hatenadiary.com/entry/2014/11/25/144621</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
