Python查看keywords关键字的方法和keywords列表

Python查看keywords关键字的方法和keywords列表

每种语言都有其特定的语法和keywords(关键字)Python也不例外,码笔记分享Python keywords关键字和keywords查询列表:

如何查看Python keywords

1. 进入Python命令模式

打开CMD命令行或者终端,执行命令:python

2. 执行命令:help('keywords')即可查看Python的关键字

示例:

[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

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

云服务器租用优惠价格,2025年最新:

阿里云:服务器99元1年,新老同享,续费99元1年(多配置报价明细)

腾讯云:服务器秒杀28元1年,更多2核2G/2核4G/4核8G/4核16G/8核价格表

京东云:轻量云主机36元1年,2核4G5M 158元/4核8G5M 498元/8核16G/16核费用清单

华为云:服务器最便宜36元1年,2核4G 99元/4核8G 328元/8核16G/16核优惠活动

相关推荐

春风十里不如你剧情介绍
365bet现场走地盘

春风十里不如你剧情介绍

📅 07-28 👁️ 6661
1 0.99999的悖论_为什么0.9999…=1,这个等式真得成立吗?
怎样才能让移动硬盘在手机上识别(移动硬盘怎么插手机上查看?)