<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>program-shoshinsya</author_name>
  <author_url>https://blog.hatena.ne.jp/program-shoshinsya/</author_url>
  <blog_title>auの日記</blog_title>
  <blog_url>https://program-shoshinsya.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>auです。Pythonで比較をする際に、値同士なら「==」boolなら「is」という風に使っていました。なんでかなーと思ったので、今回調べてみました。 == ==は、変数の値を比較しています。そのまんまですね。 a = 1 b = 1 print(a == b) # True is isは、インスタンスに振られているidが一緒かどうか判断しています。インスタンスは、簡単にいうと変数やクラスの作られる実物のことです。普通に宣言する変数も「インスタンス変数」と呼ばれています。実際に書いてみると a = 1 b = 1 c = 2 print(id(a)) # 4416734512 print(id…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fprogram-shoshinsya.hatenablog.com%2Fentry%2F2020%2F11%2F15%2F233610&quot; title=&quot;Pythonのisと==の違いについて調べてみた - auの日記&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>2020-11-15 23:36:10</published>
  <title>Pythonのisと==の違いについて調べてみた</title>
  <type>rich</type>
  <url>https://program-shoshinsya.hatenablog.com/entry/2020/11/15/233610</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
