[Solved] configparser.ParsingError: Source contains parsing errors:

Phenomenon:

The following error occurs when using the configparser module to read the data of the configuration file:

Analysis and solution:

When creating a configparser instance, use the following method:

c = configparser.ConfigParser(allow_no_value=True)

Corrected execution result:

Read More: