Python语言API [英] Python language API

查看:172
本文介绍了Python语言API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Python开始使用Python。



我想知道是否存在类似于JavaDoc API的类,我可以找到类,其方法和如何使用它的示例。



我发现非常有帮助,可以使用Python(命令行)中的 help(thing)



我也找到了:



http:// docs.python.org/2/



https://docs.python.org/2/py-modindex.html



但是,当你已经有你正在寻找的类名。在JavaDoc API中,我有所有的类,所以如果我需要的东西,我向下滚动到一个听起来像我需要的类。或者有些时候,我只是浏览所有的课程,看看他们做什么,当我需要一个功能时,我的大脑回忆起我我们在javadoc中看到类似的东西!



但是我似乎没有在Python中找到类似的东西(还有),以及为什么我要发布这个任务。



BTW我知道我最终会读到这个:



https://docs.python.org/2/library/



但是,我认为这不是今天。

解决方案

pydoc



我不知道你是否在寻找更复杂的东西,但它是诀窍。


I'm starting with Python coming from java.

I was wondering if there exists something similar to JavaDoc API where I can find the class, its methods and and example of how to use it.

I've found very helpul to use help( thing ) from the Python ( command line )

I have found this also:

http://docs.python.org/2/

https://docs.python.org/2/py-modindex.html

But it seems to help when you already have the class name you are looking for. In JavaDoc API I have all the classes so if I need something I scroll down to a class that "sounds like" what I need. Or some times I just browse all the classes to see what they do, and when I need a feature my brain recalls me We saw something similar in the javadoc remember!?

But I don't seem to find the similar in Python ( yet ) and that why I'm posting this questin.

BTW I know that I would eventually will read this:

https://docs.python.org/2/library/

But, well, I think it is not today.

解决方案

pydoc?

I'm not sure if you're looking for something more sophisticated, but it does the trick.

这篇关于Python语言API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆