{"image_url":null,"type":"rich","description":"\u25a0 \u306f\u3058\u3081\u306b \u5217\u6319\u578b\uff08Enum\uff09\u3092\u597d\u3093\u3067\u4f7f\u3046\u306e\u3060\u304c Python \u3067\u306f\u3001\u3069\u3046\u306a\u3093\u3060\u3068\u601d\u3044\u3001\u8abf\u3079\u3066\u307f\u305f (\u3042\u3093\u307e\u308a\u30e1\u30b8\u30e3\u30fc\u3058\u3083\u306a\u3055\u3052) \u76ee\u6b21 \u3010\uff11\u3011Enum \u3010\uff12\u3011\u30b5\u30f3\u30d7\u30eb \u4f8b\uff11\uff1aEnum\u306e\u5b9a\u7fa9 \u4f8b\uff12\uff1a\u6587\u5b57\u5217 \u4f8b\uff13\uff1aEnum\u306e\u30eb\u30fc\u30d7 \u3010\uff11\u3011Enum https://docs.python.org/ja/3/library/enum.html \u3088\u308a * From v3.4 (\u610f\u5916\u3068\u65b0\u3057\u3044) \u3010\uff12\u3011\u30b5\u30f3\u30d7\u30eb \u4f8b\uff11\uff1aEnum\u306e\u5b9a\u7fa9 from enum import Enum class Color(Enum): RED = 1 BLUE = 2 GREEN = 3 def print_color(co\u2026","version":"1.0","title":"\u3010Python\u3011Python \uff5e \u57fa\u672c\u7de8 / Enum \uff5e","categories":["Python"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdk521123.hatenablog.com%2Fentry%2F2019%2F11%2F26%2F234736\" title=\"\u3010Python\u3011Python \uff5e \u57fa\u672c\u7de8 / Enum \uff5e - \u30d7\u30ed\u30b0\u30e9\u30e0 \u306e\u8d85\u500b\u4eba\u7684\u306a\u30e1\u30e2\" 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","height":"190","width":"100%","blog_title":"\u30d7\u30ed\u30b0\u30e9\u30e0 \u306e\u8d85\u500b\u4eba\u7684\u306a\u30e1\u30e2","author_url":"https://blog.hatena.ne.jp/dk521123/","author_name":"dk521123","url":"https://dk521123.hatenablog.com/entry/2019/11/26/234736","blog_url":"https://dk521123.hatenablog.com/","provider_name":"Hatena Blog","published":"2019-11-26 23:47:36"}