<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>oinume</author_name>
  <author_url>https://blog.hatena.ne.jp/oinume/</author_url>
  <blog_title>oinume journal</blog_title>
  <blog_url>https://oinume.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>a = 1 b = 2 print(&quot;locals = &quot; + str(locals())) こんな風に書くとローカル変数の値が簡単にデバッグできるかなーと思った。 locals = {'a': 1, 'b': 2, '__builtins__': &lt;module '__builtin__' (built-in)&gt;, '__file__': '/Users/oinuma_kazuhiro/Dropbox/code/python/locals.py', '__package__': None, '__name__': '__main__', '__doc__': None} ただ、余計なものまで…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foinume.hatenablog.com%2Fentry%2Fwp%2F547&quot; title=&quot;Pythonでローカル変数の値をprintfデバッグしたい - oinume journal&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-06-05 14:06:54</published>
  <title>Pythonでローカル変数の値をprintfデバッグしたい</title>
  <type>rich</type>
  <url>https://oinume.hatenablog.com/entry/wp/547</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
