Ipython 查看单据时自动打印__
在查看docstring时,是否可以将配置文件更改为自动进行打印 对比下面iPython控制台上的6和7Ipython 查看单据时自动打印__,ipython,Ipython,在查看docstring时,是否可以将配置文件更改为自动进行打印 对比下面iPython控制台上的6和7 In [6]: zip.__doc__ Out[6]: 'zip(seq1 [, seq2 [...]]) -> [(seq1[0], seq2[0] ...), (...)]\n\nReturn a list of tuples, where each tuple contains the i-th element\nfrom each of the argument sequenc
In [6]: zip.__doc__
Out[6]: 'zip(seq1 [, seq2 [...]]) -> [(seq1[0], seq2[0] ...), (...)]\n\nReturn a list of tuples, where each tuple contains the i-th element\nfrom each of the argument sequences. The returned list is truncated\nin length to the length of the shortest argument sequence.'
In [7]: print zip.__doc__
zip(seq1 [, seq2 [...]]) -> [(seq1[0], seq2[0] ...), (...)]
Return a list of tuples, where each tuple contains the i-th element
from each of the argument sequences. The returned list is truncated
in length to the length of the shortest argument sequence.
谢谢。IPython已经帮你做了。使用
?
而不是检查\uuuuuuuuuuuuuuuuuuuuu
In [1]: zip?
伊皮顿已经为你做了。使用
?
而不是检查\uuuuuuuuuuuuuuuuuuuuu
In [1]: zip?