直奔主题,理解Python关键字有利于正确理解Python中的命令,对于系统掌握Python语法有着十分重要的作用。
1, False : Boolean Value as no
2, True : Boolean Value as yes
应该很容易理解,两个是布尔值,一个为真一个为假,这是中文喜欢这么说,其实就是一个yes,一个no。
3,and : All conditions in boolean expression must be met
就是说用 and 连接的布尔表达式需要都考虑在内,具体的就不啰嗦了。
还有 or 就不另外写了。
4, None : 定义一个null值,就是一个空值。这个需要使用才知道具体是什么。
5, as : if we want to give a module a differenct alias
给一个模块一个别名。
6, break: interrupt the [loop] cycle and exit
强行终止循环,跳出循环
7, continue: interrupt cycle without exiting
中断本次循环,并不跳出,也就是说,继续下一个循环
8, class used to create new user defined objects
用于