python help dir stackoverflow docs google--遇到python问题怎么样解决
2013-04-02 22:40
519 查看
Online help and dir
There are a variety ways to get help for Python.Do a Google search, starting with the word "python", like "python list" or "python string lowercase". The first hit is often the answer. This technique seems to work better for Python than it does for other languages for some reason.
谷歌搜索,以“python”开头的关键字,例如:“python list” 或者 "python string lowercase",通常来说第一个搜索结果就是你所需要的答案。
The official Python docs site -- docs.python.org -- has high quality docs. Nonetheless, I often find a Google search of a couple words to be quicker.
官方文档
There is also an official Tutor mailing list specifically designed for those who are new to Python and/or programming!
官方教程邮件组列表--特别为python新手,编程初学者设定。
Many questions (and answers) can be found on StackOverflow.
www.stackoverflow.com
Use the help() [and dir()] functions described below.
用下面说到的内置函数,help() dir()
Inside the Python interpreter, the help() function pulls up documentation strings for various modules, functions, and methods. These doc strings are similar to Java's javadoc. This is one way to get quick access to docs. Here are some ways to call help() from inside the interpreter:
help(len) -- docs for the built in len function (note here you type "len" not "len()" which would be a call to the function)
help(sys) -- overview docs for the sys module (must do an "import sys" first)
dir(sys) -- dir() is like help() but just gives a quick list of the defined symbols
help(sys.exit) -- docs for the exit() function inside of sys
help('xyz'.split) -- it turns out that the module "str" contains the built-in string code, but if you did not know that, you can call help() just using an example of the sort of call you mean: here 'xyz'.foo meaning the foo() method that runs on strings
help(list) -- docs for the built in "list" module
help(list.append) -- docs for the append() function in the list module
原文地址:https://developers.google.com/edu/python/introduction?hl=ja点击打开链接
相关文章推荐
- python help dir stackoverflow docs google--遇到python问题怎么样解决
- 解决无法访问ajax.googleapis.com导致无法访问stackoverflow.com的问题
- Tomcat 7.0.3x 启动慢并且遇到StackOverflowError的异常的解决办法
- python学习中遇到的问题及解决方法
- 解决 docs.google.com 不能访问的问题
- 一种解决Android出现StackOverflowError问题的方法
- 解决Python的str强转int时遇到的问题
- Tomcat 7.0.3x 启动时遇到StackOverflowError导致失败的解决办法
- 解决 'System.StackOverflowException' 发生错误在 System.Data.dll 的问题
- 解决Python2.7画三维图像遇到的编码问题
- python 爬取帖子的链接遇到的问题并解决
- Mac下配置caffe的Python接口 遇到的问题及解决办法
- 使用python的subprocess模块遇到的问题及其解决
- python2.7 遇到ascii编码问题解决方法
- win7下面安装python3.4+django1.7遇到的问题及解决
- 调优JVM内存,并解决OutOfMemoryError,StackOverflowError等异常问题
- 记录redhat下安装MySQL-python 模块遇到的问题及解决方法
- python安装mysqldb模块遇到的问题和解决方法
- python使用requests爬取网页,遇到中文出现遇到中文出现乱码的编码问题及解决乱码的编码问题及解决
- python3写爬虫程序时,遇到的问题及解决方法