原因:%这些特殊字符是无法从配置文件中读取出来的
将读取配置文件的方式改变,使用下面的方式
import configparser
cf = configparser.RawConfigParser()
cf.read('read_ini.ini')
原因:%这些特殊字符是无法从配置文件中读取出来的
将读取配置文件的方式改变,使用下面的方式
import configparser
cf = configparser.RawConfigParser()
cf.read('read_ini.ini')
本文标题:ConfigParser.InterpolationSyntax
本文链接:https://www.haomeiwen.com/subject/oonjwktx.html
网友评论