通过调用库来输出!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