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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章