{"image_url":null,"blog_url":"https://kaisk.hatenadiary.com/","version":"1.0","blog_title":"keisuke\u306e\u30d6\u30ed\u30b0","author_url":"https://blog.hatena.ne.jp/kaisk/","type":"rich","categories":["Python"],"url":"https://kaisk.hatenadiary.com/entry/2014/10/08/032314","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkaisk.hatenadiary.com%2Fentry%2F2014%2F10%2F08%2F032314\" title=\"decorator - keisuke\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2014-10-08 03:23:14","description":"http://www.jeffknupp.com/blog/2013/11/29/improve-your-python-decorators-explained/ @currency def price_with_tax(price, tax_rate_percentage): return price * (1 + tax_rate_percentage) \u3067\u306f\u3001currency\u304cdecorator. currency\u306f def currency(f): def wrapper(*args, **kwargs): return '$' + str(f(*args, **kwargs)) r\u2026","provider_name":"Hatena Blog","width":"100%","title":"decorator","provider_url":"https://hatena.blog","author_name":"kaisk","height":"190"}