このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
Tag Cloud
このページへのアクセス
今日: 2 / 昨日: 0
総計: 534
- DokuWiki(174)
- Dokuwiki.fl8.jp(98)
- FreeBSD カーネル再構築(17)
- Gallery(11)
- whois(9)
- 麻雀ルール(7)
- 02 ProFTPD(7)
最近の更新
このページへのアクセス
今日: 2 / 昨日: 0
総計: 534
import json with open('sample.json', 'r') as f: data = json.load(f)
import json import urllib.request url = 'https://fl8.jp/sample.json' res = urllib.request.urlopen(url) # json_loads() でPythonオブジェクトに変換 data = json.loads(res.read().decode('utf-8'))
import json savepath = 'sample.json' with open(savepath, 'w') as outfile: json.dump(data, outfile)
import json jsn = json.dumps(data) print(jsn)