Why doesn't response pydoc on my Python 2.7?

Robert rxjwg98 at gmail.com
Sat Dec 12 18:01:54 EST 2015


Hi,

I want to use pydoc as some online tutorial shows, but it cannot run as 
below. What is wrong?


Thanks,




>>> import pydoc
>>> pydoc
<module 'pydoc' from 'C:\Python27\lib\pydoc.pyc'>
>>> pydoc sys
SyntaxError: invalid syntax
>>> import sys
>>> pydoc sys
SyntaxError: invalid syntax
>>> help(pydoc)
Help on module pydoc:
......



More information about the Python-list mailing list