質問編集履歴

1

コードの追加

2018/09/21 06:13

投稿

ssh_u
ssh_u

スコア34

test CHANGED
File without changes
test CHANGED
@@ -65,3 +65,33 @@
65
65
  python3を使用しています。
66
66
 
67
67
  回答よろしくお願いします。
68
+
69
+
70
+
71
+ ###ソースコード
72
+
73
+ ```python
74
+
75
+ import json
76
+
77
+
78
+
79
+ def main():
80
+
81
+ with open('document.json', 'r', encoding='UTF-8') as file:
82
+
83
+ json_data = json.load(file)
84
+
85
+
86
+
87
+ data = json.dumps(json_data)
88
+
89
+ print(data)
90
+
91
+
92
+
93
+ if __name__ == '__main__':
94
+
95
+ main()
96
+
97
+ ```