Python語法及語義
外观
Python 語法及語義(Python syntax and semantics),Python 編程語言的語法是一組規則,用於定義 Python 程序將如何編寫與解釋(由運行時系統及人類讀者)。 [1]Python 語言與 Perl、C 以及 Java 有許多相似之處。 不過,在這些語言之間仍存在著一些明確的差異。
關鍵字
Python有35個關鍵字或保留字;這些關鍵字或保留字不能用作標識符。[2][3]
- 註解
註釋
- ^ "Readability counts." - PEP 20 - The Zen of Python
- ^ 2. Lexical analysis. Python 3 documentation. Python Software Foundation. [2021-03-11].
- ^ 2. Lexical analysis. Python v2.7.18 documentation. Python Software Foundation. [2021-03-11].
- ^ New Keywords. Python v3.5 documentation. Docs.python.org. [2016-06-01]. (原始内容存档于2016-06-18).
外部連結
- Python tutorial written by the author of Python, Guido van Rossum.