每种语言都有其特定的语法和keywords(关键字)Python也不例外,码笔记分享Python keywords关键字和keywords查询列表:
如何查看Python keywords
打开CMD命令行或者终端,执行命令:python
help('keywords')
即可查看Python的关键字示例:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
[root@mabiji ~]# python Python 2.7.10 (default, Oct 6 2017, 22:29:07) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> help('keywords') Here is a list of the Python keywords. Enter any keyword to get more help. and elif if print as else import raise assert except in return break exec is try class finally lambda while continue for not with def from or yield del global pass |
Python的keywords关键字列表
如下:
and | elif | if | |
as | else | import | raise |
assert | except | in | return |
break | exec | is | try |
class | finally | lambda | while |
continue | for | not | with |
def | from | or | yield |
del | global | pass |
2021云服务器又降价了,阿里云VS腾讯云
云服务器特价:2021阿里云服务器优惠活动(全网最低价)
①真便宜:阿里云服务器69元1年,203元3年(全网最低价)
②腾讯云:腾讯云服务器秒杀特惠88元一年起(有高配)
③代金券:2021阿里云代金券一键领取中
发表评论