Dormouse Hole

The new hole since 2018

0%

ConfigParser Usage

Example:

1
2
3
4
conf_file = 'conf.ini'
conf_parser = ConfigParser.ConfigParser()
conf_parser.read(conf_file)
conf = {key: value for key, value in conf_parser.items(section_name)}
Read more »

简介

本文主要说明如何通过使用 Sphinx 把 reStructuredText (或者 markdown )生成 PDF 文件。 Sphinx 是一个可以把一系列 reStructuredText 格式文档转换为多种不同格式文档的工具。它具有自动解决交叉引用和编制目录等功能。 Sphinx 支持 html 、 LaTeX 、 ePub 等多种输出格式。现在 Sphinx 已支持 Markdown 格式的源文件。

Read more »