code: def write_config(name, value):
      
      name = name.lower()
      new = True
      conf_list = _read_config_list()
      for i, conf in enumerate(conf_list):
          if conf.startswith(name):
              conf_list[i] = '{0}={1}'.format(name, value)
              new = False
              break
      if new:
          conf_list.append('{0}={1}'.format(name, value))
  
      with codecs.open('conf.ini', 'w+', encoding='utf-8') as f1:
          for conf in conf_list:
              f1.write(conf + '\n')
      return True
docs: 配置写入