このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
- 02 Apache2で自己認証ssl [中間証明書の整合性確認]
最近の更新
import json with open(039;sample.json039;, 039;r039;) as f: data = json.load(f)
import json import urllib.request url = 039;https://fl8.jp/sample.json039; res = urllib.request.urlopen(url) # json_loads() でPythonオブジェクトに変換 data = json.loads(res.read().decode(039;utf-8039;))
import json savepath = 039;sample.json039; with open(savepath, 039;w039;) as outfile: json.dump(data, outfile)
import json jsn = json.dumps(data) print(jsn)