configparser --- 設定檔剖析器

原始碼:Lib/configparser.py


This module provides the ConfigParser class which implements a basic configuration language which provides a structure similar to what's found in Microsoft Windows INI files. You can use this to write Python programs which can be customized by end users easily.

備註

This library does not interpret or write the value-type prefixes used in the Windows Registry extended version of INI syntax.

也參考

tomllib 模組

TOML is a well-specified format for application configuration files. It is specifically designed to be an improved version of INI.

shlex 模組

Support for creating Unix shell-like mini-languages which can also be used for application configuration files.

json 模組

The json module implements a subset of JavaScript syntax which is sometimes used for configuration, but does not support comments.

Quick Start