ini format file introduction

Introduction to ini format

ini is a format, usually used in configuration files. It has the following rules

  • []Square brackets represent subsections,
  • Use the name = key format, and the name cannot be repeated in a section.
  • For the use of comments 分号, many people say that # is also a comment. In fact, this is wrong. Why? Originally it was name=value, #after adding #name=value, the key value becomes text #name, and namethe corresponding value cannot be found, so it looks like a comment, but it is not.

Let's take a configuration file of uWSGI as an example

[uwsgi]  ;这是小节
main_plugin = pyuwsgi,python,gevent,stats_pusher_statsd
inherit = base ;key = value格式,小节内key值不能重复
bin_name = pyuwsgi.so
as_shared_library = true

reference

Do standard windows .ini files allow comments?

Guess you like

Origin blog.csdn.net/wangjun5159/article/details/122564564