<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>minion024</author_name>
  <author_url>https://blog.hatena.ne.jp/minion024/</author_url>
  <blog_title>How to make datas our friends</blog_title>
  <blog_url>https://024minion.hatenablog.jp/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>言語処理100本ノック</anon>
  </categories>
  <description>背景 言語処理100本ノック 2015を今やっているのでその備忘録的なやつ。 やりたいこと 引数x, y, zを受け取り「x時のyはz」という文字列を返す関数を実装する。 さらに、x=12, y=&quot;気温&quot;, z=22.4として、実行結果を確認。 結果 Python3.6から新しく導入されたf-string関数を使用して作成してみました。 def getTemplate(x, y, z) : result = f'{x}時の{y}は{z}' return result str = getTemplate(12, '気温', 22.4) # 実行結果 &gt; str &gt; '12時の気温は22.4' 解…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F024minion.hatenablog.jp%2Fentry%2F2017%2F05%2F11%2F013711&quot; title=&quot;Pythonでテンプレートによる文生成をおこなう関数を作成する - How to make datas our friends&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>2017-05-11 01:37:11</published>
  <title>Pythonでテンプレートによる文生成をおこなう関数を作成する</title>
  <type>rich</type>
  <url>https://024minion.hatenablog.jp/entry/2017/05/11/013711</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
