{"url":"https://teruaki-enoto.hatenadiary.org/entry/20100823/1282578303","provider_url":"https://hatena.blog","version":"1.0","published":"2010-08-23 00:45:03","blog_url":"https://teruaki-enoto.hatenadiary.org/","width":"100%","blog_title":"\u897f\u65b9\u898b\u805e\u9332","image_url":null,"author_name":"teruaki_enoto","categories":["\u30c7\u30fc\u30bf\u89e3\u6790"],"type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fteruaki-enoto.hatenadiary.org%2Fentry%2F20100823%2F1282578303\" title=\" Python \u3067\u7269\u7406\u6b21\u5143\u3092\u4f7f\u3046 - \u897f\u65b9\u898b\u805e\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":" Python \u3067\u7269\u7406\u6b21\u5143\u3092\u4f7f\u3046","author_url":"https://blog.hatena.ne.jp/teruaki_enoto/","height":"190","provider_name":"Hatena Blog","description":"Python \u306e\u4fbf\u5229\u306a\u3068\u3053\u308d\u306f\u30a4\u30f3\u30bf\u30d7\u30ea\u30bf\u8a00\u8a9e\u3068\u3057\u3066\u3001\u96fb\u5353\u4ee3\u308f\u308a\u306e\u4f7f\u3044\u65b9\u3082\u3067\u304d\u308b\u3068\u3053\u308d\u3002 \u305d\u3046\u3059\u308b\u3068\u3001\u7269\u7406\u6b21\u5143(\u5358\u4f4d)\u306e\u8a08\u7b97\u3082\u3067\u304d\u308b\u3068\u4fbf\u5229\u3068\u601d\u3046\u306e\u304c\u81ea\u7136\u306a\u6d41\u308c\u3002 \u305d\u3053\u3067\u3001\u5024\u306e\u5927\u304d\u3055\u3001\u6b21\u5143\u3001\u5834\u5408\u306b\u3088\u3063\u3066\u306f\u7cbe\u5ea6(\u4e0d\u5b9a\u6027)\u3092\u53d6\u308a\u6271\u3046\u305f\u3081\u306b quantities \u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u3042\u308b\u3002 http://packages.python.org/quantities/\u3053\u308c\u3092 install \u3057\u3066\u8a66\u3057\u306b\u4f7f\u3063\u3066\u307f\u308b\u3002 >>> import quantities as pq >>> q = 1 * pq.parsec >>> q array(1.0) * pc >>> q.units = 'cm' array(\u2026"}