update_config/role/xinshenghua/files/head.py
2021-10-26 14:09:34 +08:00

14 lines
415 B
Python

import json
with open('head.json', 'r', encoding='utf8') as f:
j = json.load(f)
chenghao = j['1']
head = j['2']
headframe = j['3']
with open('chenghao.json', 'w', encoding='utf8') as f:
json.dump(chenghao, f)
with open('head.json', 'w', encoding='utf8') as f:
json.dump(chenghao, f)
with open('headframe.json', 'w', encoding='utf8') as f:
json.dump(chenghao, f)