質問編集履歴
1
エラー全文を加筆しました。
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
TypeError: string indices must be integers
|
1
|
+
TypeError: string indices must be integers pythonのエラー
|
test
CHANGED
@@ -3,6 +3,20 @@
|
|
3
3
|
どなたかご教授ください。
|
4
4
|
|
5
5
|
因みに、これはクラッシュロワイヤルというゲームのAPIを使っています。(https://developer.clashroyale.com/#/)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
エラーコードは以下になります。
|
10
|
+
|
11
|
+
Traceback (most recent call last):
|
12
|
+
|
13
|
+
File "C:\Users\mto\Desktop\python_lesson\CRL\crl_api.py", line 53, in <module>
|
14
|
+
|
15
|
+
print(battle_info()[0]["type"])
|
16
|
+
|
17
|
+
TypeError: string indices must be integers
|
18
|
+
|
19
|
+
|
6
20
|
|
7
21
|
|
8
22
|
|