Under the MOON
「才能を非生産的な事に浪費してこそ、真のヲタクである」 この名言にかなう為に日々色々学ぶ日々(多分)。
ラベル
json
の投稿を表示しています。
すべての投稿を表示
ラベル
json
の投稿を表示しています。
すべての投稿を表示
2013年6月12日水曜日
python3のJSONメモ
python2.x
f = urllib.request.urlopen(url)
return json.loads(f.read())
python3.x
f = urllib.request.urlopen(url)
content = f.read()
return json.loads(content.decode('utf8'))
前の投稿
ホーム
登録:
投稿 (Atom)