<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>turane_gaku</author_name>
  <author_url>https://blog.hatena.ne.jp/turane_gaku/</author_url>
  <blog_title>つらねの日記</blog_title>
  <blog_url>https://turanegaku.hateblo.jp/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>前置き pythonでコロン区切りのMACアドレスを取得したいと思っていた．すると， qiita.com という記事があった． しかしながら， struct というものを知らなかったので，さっぱり何がおきているのかわからない… そこで， struct を使わない形で書いてみるか，と考えた． 書いた &quot;:&quot;.join([hex(n &gt;&gt; (5 - i) * 8 &amp; 0xff)[2:].zfill(2) for (i, n) in enumerate([uuid.getnode()] * 6)]) uuid.getnodeは48bit区切りの物理アドレスを返すらしいので， それの下位8bitを取っ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fturanegaku.hateblo.jp%2Fentry%2F2016%2F02%2F04%2F213653&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-02-04 21:36:53</published>
  <title>pythonでコロン区切りの物理アドレスを取得する</title>
  <type>rich</type>
  <url>https://turanegaku.hateblo.jp/entry/2016/02/04/213653</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
