<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kikiki-kiki</author_name>
  <author_url>https://blog.hatena.ne.jp/kikiki-kiki/</author_url>
  <blog_title>かもメモ</blog_title>
  <blog_url>https://chaika.hatenablog.com/</blog_url>
  <categories>
    <anon>Python3</anon>
  </categories>
  <description>なんとなくPythonがJavaScriptに似てる気がしてきてる今日このごろ。 後のループとかで使うために関数の先頭とかで空の変数だけ作っておきたい(関数宣言だけしたい)ってのに少しハマったのでメモ。 varみたいな宣言文がPythonには無いので、変数だけ作ってみたらエラーになりました。 my_var # =&gt; NameError: name 'my_var' is not defined Pythonの変数は代入しないと作成されない。 Pythonの変数は型もなく、値を設定(代入)することで変数が作成されるという仕組みなようです。 つまり、何かしら代入しないと、その変数を探して「そんな名…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2018%2F08%2F17%2F173044&quot; title=&quot;Python 後で使う用に空の変数だけ作っておきたい。(変数宣言だけしたい) - かもメモ&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>https://images-fe.ssl-images-amazon.com/images/I/51cGPfJbSoL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-08-17 17:30:44</published>
  <title>Python 後で使う用に空の変数だけ作っておきたい。(変数宣言だけしたい)</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2018/08/17/173044</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
