<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shuzo_kino</author_name>
  <author_url>https://blog.hatena.ne.jp/shuzo_kino/</author_url>
  <blog_title>Bye Bye Moore</blog_title>
  <blog_url>https://shuzo-kino.hateblo.jp/</blog_url>
  <categories>
    <anon>ruby</anon>
    <anon>slim</anon>
  </categories>
  <description>今回はC言語使いにもお馴染み、printf記法の話です。 やや記法が独特なところがありますが、使いこなせば複雑な文字列も割と気軽に生成できます。以下の例では、出力したいものを id = 3 measure = 20 とします。 printfだと代入できない printfはputsやprintと同じように出力（デフォではstdout）をするだけのメソッドです。 これを文字列代入に使おうとすると &gt; str = printf &quot;id =&gt; 0x%04x, measured =&gt; 0x%02x\n&quot; , id, measure id =&gt; 0x0003, measured =&gt; 0x14 =&gt; ni…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2013%2F10%2F26%2F200849&quot; title=&quot;printf記法を使って変数の多い文字列を楽に生成する - Bye Bye Moore&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>2013-10-26 20:08:49</published>
  <title>printf記法を使って変数の多い文字列を楽に生成する</title>
  <type>rich</type>
  <url>https://shuzo-kino.hateblo.jp/entry/2013/10/26/200849</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
