import configparser
class ReadConfig:
'''read config file'''
def read_config(self,file_path,section,option):
cf = configparser.ConfigParser()
cf.read(file_path,encoding="utf-8")
res = cf.get(section,option)
return res
python配置文件处理模块
猜你喜欢
转载自blog.csdn.net/qq_39878307/article/details/84181959
今日推荐
周排行