import keyword
c = 0
for i in keyword.kwlist:
print(i)
c += 1
1
2
3
4
5
代码截图:
哈哈,关键字:
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