タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

pythonとPythonとconfigparserに関するanimistのブックマーク (2)

  • configparser — Configuration file parser

    configparser — Configuration file parser¶ Source code: 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. Note This library does not interpret or write the value-type pr

    configparser — Configuration file parser
  • Pythonで設定ファイルを扱う方法:ConfigParser - ポップインサイト

    Pythonで設定ファイルを扱う場合はConfigParserモジュールを使うと便利です。今回はConfigParserの使い方について紹介します。 設定ファイルの構成 ConfigParserで読み込み可能な設定ファイルのフォーマットは以下のような形になります。 [セクション1] オプション1 = 値1 オプション2 = 値2 [セクション2] オプション3 = 値3 オプション4 = 値4 設定ファイルは直接ファイルに記述することもできますが、ConfigParserモジュールを使うことで簡単にフォーマットした設定ファイルを作成することができます。 設定ファイルを作成する セクションを追加するときはadd_section()メソッドを使います。引数はセクション名を表す文字列です。次にセクションの中へ、オプションと値の組を追加していきます。set() メソッドを使って、セクション名、オプ

    Pythonで設定ファイルを扱う方法:ConfigParser - ポップインサイト
  • 1