{"description":"\u4e3b\u306a\u30cd\u30bf\u306f\u30b3\u30b3\u306b\u3042\u308b\u901a\u308a\u3002 http://docs.python.jp/3.5/library/string.html#formatspec \u81ea\u5206\u304c\u3088\u304f\u4f7f\u3046\u30d1\u30bf\u30fc\u30f3\u306b\u7d5e\u3063\u3066\u30e1\u30e2\u3057\u3066\u307f\u308b\u3002 >>> printf(\"hoge\") hoge(\u6539\u884c\u3042\u308a) >>> print(\"hoge\", end=\"\") hoge(\u6539\u884c\u306a\u3057) \u30dd\u30b8\u30b7\u30e7\u30f3\u5f15\u6570\u3092\u4f7f\u3063\u305f\u30a2\u30af\u30bb\u30b9: >>> '{0}, {1}, {2}'.format('a', 'b', 'c') 'a, b, c' >>> '{2}, {1}, {0}'.format('a', 'b', 'c') 'c, b, a' >>> '{0} {1} {0}'.\u2026","published":"2016-04-01 01:41:12","provider_name":"Hatena Blog","version":"1.0","title":"Python3\u306b\u304a\u3051\u308bformat\u5f62\u5f0f\u3092\u81ea\u5206\u306e\u305f\u3081\u306b\u307e\u3068\u3081\u3066\u307f\u305f\u4ef6","height":"190","url":"https://hiroto1979.hatenablog.jp/entry/2016/04/01/014112","provider_url":"https://hatena.blog","image_url":null,"author_name":"hiroto1979","blog_title":"\u3069\u3053\u304b\u306b\u5411\u304b\u3046\u3089\u3057\u3044\u8a71","blog_url":"https://hiroto1979.hatenablog.jp/","width":"100%","author_url":"https://blog.hatena.ne.jp/hiroto1979/","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiroto1979.hatenablog.jp%2Fentry%2F2016%2F04%2F01%2F014112\" title=\"Python3\u306b\u304a\u3051\u308bformat\u5f62\u5f0f\u3092\u81ea\u5206\u306e\u305f\u3081\u306b\u307e\u3068\u3081\u3066\u307f\u305f\u4ef6 - \u3069\u3053\u304b\u306b\u5411\u304b\u3046\u3089\u3057\u3044\u8a71\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Python3"]}