2022-07-05から1日間の記事一覧
conda install -c conda-forge xmltodict 上記でインストール import xmltodict import json with open('data.xml', 'r') as f: xml_data = f.read() dictionary = xmltodict.parse(xml_data) json_object = json.dumps(dictionary) print(json_object) Refe…
以下の設定をしておく。上書き防止対策。 set -o noclobber