{"height":"190","url":"https://inamori.hateblo.jp/entry/20100921/p1","author_name":"inamori","image_url":null,"title":"\u6574\u6570\u540c\u58eb\u306e\u9664\u7b97","categories":["Python","C++"],"provider_url":"https://hatena.blog","description":"\u5143\u30cd\u30bf http://python-history-jp.blogspot.com/2010/09/pythonc.html Python\u306e\u3053\u306e\u6319\u52d5\u3001\u77e5\u3089\u306a\u304b\u3063\u305f\u3002 print -1 / 3 # -1 print -1 % 3 # 2 C++\u306a\u3089\u3001 std::cout << -1 / 3 << std::endl; // 0 std::cout << -1 % 3 << std::endl; // -1 \u4f55\u5ea6\u3053\u306e\u6319\u52d5\u306b\u60a9\u307e\u3055\u308c\u305f\u3060\u308d\u3046\u304b\u3002\u6570\u8ad6\u3067\u306f\u3082\u3061\u308d\u3093\u3001\u3088\u304f\u3042\u308b\u8a08\u7b97\u3067\u3082\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3002\u4f8b\u3048\u3070\u3001\u89d2\u5ea6\uff08degree\uff09\u30920\u00b0\u301c360\u00b0\uff08[0, 360)\uff09\u306b\u6b63\u898f\u5316\u3057\u305f\u3044\u3068\u3059\u308b\u3002Python\u306a\u3089\u3001 p\u2026","blog_title":"inamori\u2019s diary","published":"2010-09-21 00:00:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20100921%2Fp1\" title=\"\u6574\u6570\u540c\u58eb\u306e\u9664\u7b97 - 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>","width":"100%","blog_url":"https://inamori.hateblo.jp/","type":"rich","provider_name":"Hatena Blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/inamori/"}