在Python Shell交互模式中,可以输入help()来得到更多的帮助,并且进入’help>'交互模式。
如果想退出,可以使用quit()命令退出’help>'交互模式。
在’help>'交互模式中,可以查询很多内容,比如输入keywords,可以看到Python中所有关键字:
False
def
if
raise
None
del
import
return
True
elif
in
try
and
else
is
while
as
except
lambda
with
assert
finally
nonlocal
yield
break
for
not
class
from
or
continue
global
pass
如果想要进一步了解某个关键字的意义、语法等内容,可以在’help>‘交互模式下直接输入关键字,比如,输入’for’,可以看到for的使用介绍。
1.2.3 IDLE中help()的作用
最新推荐文章于 2022-12-11 19:48:37 发布