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 语句中不断收到语法错误,我不确定为什么它会不断产生此错误。我在同一个 def 中没有任何其他 else 语句,它仍然给出错误。我该怎么办?