python - introduction和基本语法
默认情况下,Python 3 源码文件以 UTF-8 编码,所有字符串都是 unicode 字符串
行与缩进
python最具特色的就是使用缩进来表示代码块,不需要使用大括号 {} 。
缩进的空格数是可变的,但是同一个代码块的语句必须包含相同的缩进空格数。
Python Keywords
Keywords are the reserved words in Python.
In Python, keywords are case sensitive.
There are 33 keywords in Python 3.7. This number can vary slightly over the course of time.
All the keywords except True
, False
and None
are in lowercase and they must be written as they are. The list of all the keywords is given below.