码迷,mamicode.com
首页 > 编程语言 > 详细

Python查看帮助

时间:2015-05-05 10:14:50      阅读:124      评论:0      收藏:0      [点我收藏+]

标签:

查看所有关键字:help(‘keywords‘)

技术分享

查看所有modules: help(‘modules‘),包多的话比较耗时

技术分享

查看中常见的topics, help(‘topics‘)

技术分享

其他help()命令:内置与非内置函数的区别

技术分享

可以看到,查看keywords的帮助文档需要加上引号,而builtin functions 加与不加效果是一直的

看下运行效果:

技术分享

查看对象的属性和方法,使用dir():

技术分享

进一步查看属性或方法的__doc__文档:

技术分享

附录,Python Built-in Functions

(来自于Python官方文档, Python 2.7.9 documentation ? The Python Standard Library ?)

技术分享

引用:

  1. http://blog.csdn.net/xiemanr/article/details/22104223
  2. http://blog.csdn.net/pfanaya/article/details/7574355

?

Python查看帮助

标签:

原文地址:http://www.cnblogs.com/liulunyang/p/4478258.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!