跳到正文
网络寻租
返回

reStructuredText介绍

什么是reStructuredText?

一种写文档的方式. 简称: ReST

怎么玩?

不多说, 直接用: http://goo.gl/1jNF4

语法

There should be one— and preferably only one —obvious way to do it.

google: rest

http://docutils.sourceforge.net/docs/user/rst/quickstart.html http://docutils.sourceforge.net/docs/user/rst/quickref.html

如何生成其他格式

需要安装docutils

python code

from docutils.core import publish_string
content = publish_string(
    source="doc here"
    writer_name='html'
    )

我用它来干什么?

连接


分享这篇文章:

上一篇
pyqt介绍
下一篇
我玩的游戏

评论

评论通过 GitHub 账号发布,需要先使用 GitHub 登录。