2
0

test.py 493 B

123456789101112131415161718
  1. import json
  2. print('name : ', end = '')
  3. b = input()
  4. json_data = open('en-US.json', 'rt', encoding='utf-8').read()
  5. a_json = json.loads(json_data)
  6. json_data = open(str(b) + '.json', 'rt', encoding='utf-8').read()
  7. b_json = json.loads(json_data)
  8. for a_in in a_json:
  9. if not a_in in b_json:
  10. print(a_in + ' : ', end = '')
  11. c = input()
  12. b_json[a_in] = c
  13. print(str(b_json).replace('", ', '",\n ').replace('{', '{\n ').replace('}', '\n}').replace('\'', '"'))