<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>masa111111</author_name>
  <author_url>https://blog.hatena.ne.jp/masa111111/</author_url>
  <blog_title>m’s blog</blog_title>
  <blog_url>https://masa111111.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>概要 python で format を使う場合に、文字列内で波括弧({)を使う場合は波括弧({)を重ねる必要がある。 事象 Slack APIを使う際にdataの文字列に波括弧({)を入れる必要があった。また、文字列には変数も展開する必要があったので、 formatを使い、以下のように書いていたが、その場合pep8でも引っかかり、また、プログラムもエラーとなった。 data = f'{&quot;text&quot;: &quot;{message}&quot;}' 実行時のエラー '...'.format(...) has unused arguments at position(s): 0 '...'.format(...) …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmasa111111.hatenablog.com%2Fentry%2F2022%2F03%2F26%2F152125&quot; title=&quot;formatを使用した文字列内で波括弧({)を使用する - m’s blog&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>2022-03-26 15:21:25</published>
  <title>formatを使用した文字列内で波括弧({)を使用する</title>
  <type>rich</type>
  <url>https://masa111111.hatenablog.com/entry/2022/03/26/152125</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
