2017.8.30 Errors


“break" ouside the loop

break 不能用來中止 if statement,而是中止 Loop


unindent does not match any outer indentation level

新的 python 語法中,代碼縮進 (indentation) 不支援 Tab 和 Space 混用


name ‘raw_input’ is not defined

python 3 只需要 ‘input‘ 即可,沒有 ‘raw_input’


 

廣告