我只能通过Python2 ConfigParser编写注释吗?

时间:2019-01-22 14:35:37

标签: python python-2.7 configparser

我想使用ConfigParser将纯注释行写到配置文件的开头(而不是写到节中)。 ConfigParser.set()需要一段要写入的内容。我可以以某种方式解决此问题吗?

0 个答案:

没有答案