美文网首页
ConfigParser.InterpolationSyntax

ConfigParser.InterpolationSyntax

作者: 羽天驿 | 来源:发表于2020-12-01 10:38 被阅读0次

    原因:%这些特殊字符是无法从配置文件中读取出来的
    将读取配置文件的方式改变,使用下面的方式

    import configparser
    cf = configparser.RawConfigParser()
    cf.read('read_ini.ini')
    

    相关文章

      网友评论

          本文标题:ConfigParser.InterpolationSyntax

          本文链接:https://www.haomeiwen.com/subject/oonjwktx.html