1. 程式人生 > >Python中常見錯誤

Python中常見錯誤

IndentationError(縮排錯誤):

expected an indented block    :應為縮排塊

 

 

 

TypeError:(型別錯誤)

'*' object does not support item assignment  :某物件不支援項分配

 

 

IndexError(索引錯誤):

*  assignment index out of range :*  分配索引超出範圍