什么是保留字?
保留字又称关键字。被编程语言内部定义并保留使用的标识符,成为保留字。保留字是编程语言的基本单词,大小写敏感。
if是保留字,IF是变量。
保留字
and | elif | import | raise | global |
as | else | in | return | nonlocal |
assert | except | is | try | True |
break | finally | lambda | while | False |
class | for | not | with | None |
continue | from | or | yield | def |
if | pass | del | \ | \ |
转自:https://blog.jiangjinqu.top/python/baoliuzi.html