zoukankan      html  css  js  c++  java
  • python help dir stackoverflow docs google遇到python问题怎么样解决

    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.
        官方文档



      官方教程邮件组列表--特别为python新手,编程初学者设定。



        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点击打开链接

  • 相关阅读:
    对C# .Net4.5异步机制测试
    权限系统设计
    C#基础知识
    eclipse+pyDev
    Ubuntu下使用sublime text进行py开发
    110_02 补充模块:BeatifulSoup模块
    034 如何判断一个对象是否是可调用对象
    037 简单计算器实现
    036 re模块的小练习
    035 用Python实现的二分查找算法(基于递归函数)
  • 原文地址:https://www.cnblogs.com/jiangu66/p/2996728.html
Copyright © 2011-2022 走看看