<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cheeseshop</author_name>
  <author_url>https://blog.hatena.ne.jp/cheeseshop/</author_url>
  <blog_title>Pythonを書く</blog_title>
  <blog_url>https://cheeseshop.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>裏技っぽい何かAdvent</anon>
  </categories>
  <description>もう裏技かどうか関係ないような気もしてきましたが、乱数で迷路を描いてみることにします。 年賀状のネタにしようかな。迷路って何となくヘビっぽいし... 別冊だったころのマイコンBASICマガジンとか読んで理解した (あー歳がー) 迷路生成法の「壁延ばし法」を微かな記憶を頼りに焼きなおしてみます。 import random from PIL import Image, ImageDraw vect = [(1, 0), (0, -1), (-1, 0), (0, 1)] def drange(n0, n1): d = cmp(n1, n0) return xrange(n0, n1+d, d) …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcheeseshop.hatenadiary.org%2Fentry%2F20121215%2F1355534438&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://cdn-ak.f.st-hatena.com/images/fotolife/c/cheeseshop/20121215/20121215095511.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-12-15 10:20:38</published>
  <title> 迷路を描く</title>
  <type>rich</type>
  <url>https://cheeseshop.hatenadiary.org/entry/20121215/1355534438</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
