Java语言中有一套保留字,在Python也有自己的保留字。
两种语言中的关键字有一样的,也有不同的,下面来看一下Python中的保留字吧
注意:Python语言中,严格区分大小写!尤其注意True、False
| and | def | for | in | or | while |
| as | del | from | is | pass | with |
| assert | elif | False | lambda | raise | yield |
| break | else | global | nonlocal | return | class |
| except | if | not | try | continue | finally |
| import | None | True |

被折叠的 条评论
为什么被折叠?



