python有哪些关键字?让他自己“吐”出来!

通过调用库来输出!for循环控制!
源代码:


import keyword
c = 0
for i in keyword.kwlist:
    print(i)
    c += 1

代码截图:
在这里插入图片描述
哈哈,关键字:


False
None
True
and
as
assert
async
await
break
class
continue
def
del
elif
else
except
finally
for
from
global
if
import
in
is
lambda
nonlocal
not
or
pass
raise
return
try
while
with
yield

来源:https://blog.csdn.net/weixin_42859280/article/details/85308520

posted @ 2018-12-28 12:16  栖息地  阅读(174)  评论(0编辑  收藏  举报