{"height":"190","blog_title":"how to code something","author_url":"https://blog.hatena.ne.jp/seinzumtode/","url":"https://seinzumtode.hatenadiary.jp/entry/20110820/1313843053","published":"2011-08-20 21:24:13","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fseinzumtode.hatenadiary.jp%2Fentry%2F20110820%2F1313843053\" title=\"\u6587\u5b57\u5217\u3068\u6570\u5024\u306e\u53d6\u308a\u6271\u3044\u3067\u30cf\u30de\u3063\u305f\u3053\u3068 - how to code something\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Python","\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"title":"\u6587\u5b57\u5217\u3068\u6570\u5024\u306e\u53d6\u308a\u6271\u3044\u3067\u30cf\u30de\u3063\u305f\u3053\u3068","blog_url":"https://seinzumtode.hatenadiary.jp/","version":"1.0","type":"rich","author_name":"seinzumtode","description":"\u30cf\u30de\u3063\u305f\u3053\u3068\u306e\u30e1\u30e2\u3002 \u307e\u305a\u306f\u3001\u3053\u308c\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002 8\u7406\u7531\u306f\u4fdd\u7559\u3068\u3057\u3066\u3001\u3068\u308a\u3042\u3048\u305a['8','45']\u3092[8,45]\u306b\u3057\u305f\u3044\u3002 A = ['8','45'] for a in A: a = float(a) print A \u3067\u3001\u3067\u304d\u306a\u3044\u3002\u4ee3\u5165\u3092\u30df\u30b9\u3063\u3066\u308b\u3053\u3068\u306b\u6c17\u3065\u3044\u305f\u3002 #! usr/bin/env python # -*- coding: utf-8 -*- #str_to_int.py A=['8','45'] print A i=0 for a in A: A[i]=float(a) i+=1 print A \u3067OK\u3002","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/s/seinzumtode/20110820/20110820212401.png","width":"100%"}