質問編集履歴
3
タイトルの変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
for文でjsonファイルを出力するときファイルの内容がバラバラになってしまう
|
test
CHANGED
File without changes
|
2
記述ミス
test
CHANGED
File without changes
|
test
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
### 実現したいこと
|
9
9
|
|
10
|
-
・jsonファイルの鍵かっこ{}の位置を調節
|
10
|
+
・jsonファイルの鍵かっこ{}の位置を調節・不必要な{}の削除
|
11
11
|
・jsonファイルの","の位置の調整
|
12
12
|
|
13
13
|
|
1
文法の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -81,7 +81,9 @@
|
|
81
81
|
json.dump(deta,f,ensure_ascii=False,indent=4)
|
82
82
|
print(deta)
|
83
83
|
```
|
84
|
+
|
84
85
|
### pokemon_deta.json
|
86
|
+
```json
|
85
87
|
{
|
86
88
|
"ニャオハ": {
|
87
89
|
"number": "No.001",
|
@@ -140,6 +142,11 @@
|
|
140
142
|
}
|
141
143
|
}
|
142
144
|
}
|
145
|
+
....
|
146
|
+
...
|
147
|
+
..
|
148
|
+
.
|
149
|
+
```
|
143
150
|
### 試したこと
|
144
151
|
Googleでの検索
|
145
152
|
|