"Pydoc"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source lang='cli'> +<source lang='console'>))
잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
(같은 사용자의 중간 판 하나는 보이지 않습니다)
6번째 줄: 6번째 줄:


==기본 실행==
==기본 실행==
<source lang='bash'>
<syntaxhighlight lang='bash'>
pydoc 이름
pydoc 이름
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# pydoc math.sqrt
[root@zetawiki ~]# pydoc math.sqrt
Help on built-in function sqrt in math:
Help on built-in function sqrt in math:
17번째 줄: 17번째 줄:
      
      
     Return the square root of x.
     Return the square root of x.
</source>
</syntaxhighlight>


==웹서버 실행 (-p)==
==웹서버 실행 (-p)==
*문서를 웹서버로 띄워서 볼 수도 있다.
*문서를 웹서버로 띄워서 볼 수도 있다.
<source lang='bash'>
<syntaxhighlight lang='bash'>
pydoc -p 포트번호
pydoc -p 포트번호
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# pydoc -p 1234
[root@zetawiki ~]# pydoc -p 1234
pydoc server ready at http://localhost:1234/
pydoc server ready at http://localhost:1234/
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==
34번째 줄: 34번째 줄:
*[[API]]
*[[API]]


==참고 자료==
==참고==
*http://pydoc.org/
*http://pydoc.org/
*https://en.wikipedia.org/wiki/Pydoc
*https://en.wikipedia.org/wiki/Pydoc

2020년 11월 2일 (월) 02:31 기준 최신판

1 개요[ | ]

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

2 기본 실행[ | ]

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.

3 웹서버 실행 (-p)[ | ]

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

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}