Python之configparser模块的封装
# -*- encoding:utf-8 -*-
from configparser import ConfigParser
import os
class ConfigFileUtils:
def __init__(self, config_file, encode="utf-8"):
if os.path.exists(config_file):
self.__cfg_file = config_file
else:
原创
2020-05-10 21:35:00 ·
531 阅读 ·
0 评论