python運行報錯提示語
報錯提示語 | 解釋 |
SyntaxError: invalid syntax | 無效的語法,語法錯誤 |
NameError: name 'xxxx' is not defined | 沒有定義變量 |
IndentationError: expected an indented block | 代碼縮進錯誤 |
KeyError: 'xxx' | 在字典裏面取一個不存在的值 |
IndexError: list index out of range | 取值超出長度列表的長度 |
TypeError: argument of type 'int' is not iterable | int類型參數不可迭代 |
TypeError:xxx takes no arguments |
構造的某個函數失敗 |
待更新...... | 待更新...... |