Pydoc


개요

pydoc
/usr/bin/pydoc
  • 파이썬 문서 도구
  • 파이썬 문서 모듈

기본 실행

pydoc 이름
[root@zetawiki ~]# pydoc math.sqrt
Help on built-in function sqrt in math:

math.sqrt = sqrt(...)
    sqrt(x)
    
    Return the square root of x.

웹서버 실행 (-p)

  • 문서를 웹서버로 띄워서 볼 수도 있다.
pydoc -p 포트번호
[root@zetawiki ~]# pydoc -p 1234
pydoc server ready at http://localhost:1234/

같이 보기

참고