标识符、关键字、变量、语句、代码注释、模块
2.1 标识符
![](https://i-blog.csdnimg.cn/blog_migrate/e3958e4d7e1f723d222db2d236614499.png)
2.2 关键字
所有关键字都不能作为标识符,只有前三个首字母大写
2.3 变量
>>> s="hello world"
>>> print(s)
hello world
>>> y = 20
>>> y
20
>>> y = True
>>> y
True
>>> s = hello world
File "<stdin>", line 1
s = hello world
^
SyntaxError: invalid syntax
>>> greet =" hello world"
>>> greet