{"published":"2008-06-20 00:00:00","title":"Python\u3092\u306f\u3058\u3081\u3066\u307f\u308b\uff087\uff09","url":"https://inamori.hateblo.jp/entry/20080620/p1","image_url":null,"categories":["Python"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20080620%2Fp1\" title=\"Python\u3092\u306f\u3058\u3081\u3066\u307f\u308b\uff087\uff09 - inamori\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","blog_url":"https://inamori.hateblo.jp/","version":"1.0","author_name":"inamori","author_url":"https://blog.hatena.ne.jp/inamori/","provider_url":"https://hatena.blog","type":"rich","width":"100%","provider_name":"Hatena Blog","blog_title":"inamori\u2019s diary","description":"\u30e2\u30b8\u30e5\u30fc\u30eb Gal\u30af\u30e9\u30b9\u304c\u3067\u304d\u305f\u306e\u3067\u3001\u305d\u308c\u3092gal.py\u3068\u540d\u524d\u3092\u3064\u3051\u3066\u30d5\u30a1\u30a4\u30eb\u306b\u3059\u308b\u3002 \u305d\u308c\u3092\u6b21\u306e\u3088\u3046\u306b\u5229\u7528\u3059\u308b\u3002 from gal import Gala = Gal(-4, -2, 3, 3) print a # (-4-2\u221a3)/3 b = Gal(3, -1, 3, 3) print b # (3-\u221a3)/3 c = a / b print c # (-9-5\u221a3)/3 d = 1 / b print d # (3+\u221a3)/2gal\u3068\u3044\u3046\u30e2\u30b8\u30e5\u30fc\u30eb\uff08\u30d5\u30a1\u30a4\u30ebgal.py\uff09\u304b\u3089Gal\u3068\u3044\u3046\u540d\u524d\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3068\u3044\u3046\u610f\u5473\u3089\u3057\u3044\u3002 \u3053\u3046\u3044\u3046\u66f8\u304d\u65b9\u3082\u3067\u304d\u308b\u3002 import gal Gal = \u2026"}