-1
私が書いた印刷プログラムでエラーが発生しました。Pythonインデント構文エラー - if/else tree
from variables import *
li = []
for i in range(len(word)):
if i in graph:
for j in graph[i]:
if j in graph[i]:
li.append(len(graph[i][j])
else: # line 23
li.append(0)
else:
for j in range(len(word)):
li.append(0)
print li
del li[:]
エラーは、私が間違って行くのです
File "eval.py", line 23
else:
^
SyntaxError: invalid syntax
のですか?
ええ、私はそれを捨てていないよにする必要があります。私はその内容を削除しています。リストはまだ存在します。風邪をひいてみてください。 –