{"width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemory-lovers.blog%2Fentry%2F2018%2F10%2F06%2F012114\" title=\"Python\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u30e1\u30e2 - \u304f\u3089\u3052\u306b\u306a\u308a\u305f\u3044\u3002\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u304f\u3089\u3052\u306b\u306a\u308a\u305f\u3044\u3002","url":"https://memory-lovers.blog/entry/2018/10/06/012114","type":"rich","image_url":null,"provider_name":"Hatena Blog","categories":["python"],"published":"2018-10-06 01:21:14","author_url":"https://blog.hatena.ne.jp/wannabe-jellyfish/","blog_url":"https://memory-lovers.blog/","title":"Python\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u30e1\u30e2","description":"Python\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3059\u308b\u65b9\u6cd5\u304c\u3044\u308d\u3044\u308d\u3042\u308b\u3063\u307d\u304f\u3001\u8abf\u3079\u305f\u6642\u306e\u5099\u5fd8\u9332\u3002 \u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u7a2e\u985e num = 1000 ### str.format() print('{:,.2f}'.format(num)) # 1,000.00 ### f\u6587\u5b57\u5217\uff1aPython3.6\u306e\u65b0\u6a5f\u80fd print(f\"{num:,.2f}\") # 1,000.00 \u6307\u5b9a\u3059\u308b\u66f8\u5f0f\u6587\u5b57\u5217\u306f\u3069\u3061\u3089\u3082\u540c\u3058 Align: \u5de6\u5bc4\u305b\u3001\u4e2d\u592e\u5bc4\u305b\u3001\u53f3\u5bc4\u305b print('left : {:<10}'.format(100)) # left : 100 print('center: {:*^10}'.format(100)) # cente\u2026","height":"190","version":"1.0","provider_url":"https://hatena.blog","author_name":"wannabe-jellyfish"}