{"blog_title":"inamori\u2019s diary","width":"100%","description":"Python2.6\u304b\u3089Fraction\u30af\u30e9\u30b9\uff08\u5206\u6570\u3068\u3044\u3046\u304b\u6709\u7406\u6570\uff09\u304c\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u8ffd\u52a0\u3055\u308c\u305f\u3002\u3059\u306a\u308f\u3061\u3001\u6628\u65e5\u306e\u65e5\u8a18\u306e\u30b3\u30fc\u30c9\u306fFraction\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u30012.6\u4ee5\u4e0a\u3067\u306a\u3044\u3068\u52d5\u304b\u306a\u3044\u3002 \u3053\u3053\u3067\u306f\u3001Python2.6\u306b\u4ed8\u5c5e\u3057\u3066\u3044\u308b\u30d8\u30eb\u30d7\u3092\u898b\u306a\u304c\u3089\u3001Fraction\u30af\u30e9\u30b9\u306e\u7d39\u4ecb\u3092\u3059\u308b\u3002 \u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u3001 from fractions import Fractiona = Fraction() # 0 \uff08\u30c7\u30d5\u30a9\u30eb\u30c8\uff09 b = Fraction(1, 2) # 1/2 c = Fraction(12, 18) # 2/3 \uff08\u3061\u3083\u3093\u3068\u7d04\u5206\u3059\u308b\uff09 d = Fraction(3, -5) # -3/5\uff08\u5206\u2026","height":"190","categories":["Python"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20090417%2Fp2\" title=\"\u5206\u6570 - 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>","provider_url":"https://hatena.blog","version":"1.0","blog_url":"https://inamori.hateblo.jp/","title":"\u5206\u6570","url":"https://inamori.hateblo.jp/entry/20090417/p2","type":"rich","author_url":"https://blog.hatena.ne.jp/inamori/","image_url":null,"author_name":"inamori","provider_name":"Hatena Blog","published":"2009-04-17 00:00:01"}