このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
- 31 CentOS5 TLS1.2 created
- 2024.04.12 MySQL BIT Field created
- 04 ↷ 50_dialy:2024:04:04 から 50_dialy:2024:04:05 へページを名称変更しました。
最近の更新
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)