if len(user_hash) > 0:
with open(log_file, "w") as log_f:
for name in user_hash:
log_f.write("Name:%s \n Email: %s" % (name, email)
else len(user_hash) < 0:
print "Nothing happened :("
else ステートメントで構文エラーが発生し続けますが、なぜこのエラーが発生し続けるのかわかりません。同じ定義に他のelseステートメントがありませんが、それでもエラーが発生します。私は何をしますか?