按照原代碼在我的Python2.7.13 shell里為什么顯示語法錯誤??!
>>> score =85
>>> if score >=90:
print 'excellent'
? ? elif score >= 80:
? ?
? File "<pyshell#3>", line 4
? ? elif score >= 80:
? ? ? ? ? ? ? ? ? ? ^
IndentationError: unindent does not match any outer indentation level
2018-07-06
有可能使用了中文符號
2017-09-22
elif對齊if 而且每個if,elif,else 后面要跟東西,沒有就 pass ?表示不做任何操作
2017-09-11
代碼沒問題 有可能是80前面的空格
或者下面的代碼不全