help()语法说明
一、语法:
help([object])
二、与for的使用:
如果我忘了for关键词是什么意思,怎么用怎么办?好办,打开你的编辑器,输入下面命令:
help('for')help()使用实例
三、查看包的帮助信息
通过执行help('tkinter')查看tkinter包的帮助信息:
四、查看某个包/模块下的某个类下的某个函数的帮助信息
代码如下:
>>> help('tkinter.XView.xview')
Help on function xview in tkinter.XView:
tkinter.XView.xview = xview(self, *args)
Query and change the horizontal position of the view.
上一篇:python中pip如何安装