Python 關鍵字

程式語言中或多或少都會有一些單字被用來代表特別的意義,這些單字被稱為關鍵字(keyword)。
Python中目前共有31個關鍵字,這些單字是不能拿來宣告變數的。使用時要多加注意。

and as assert break del
elif else except if import
not or pass print while
with yield class continue def
exec finally for in is
lambda raise return try