2020
11-29
11-29
python操作toml文件的示例代码
#-*-coding:utf-8-*-#@Time:2019-11-1809:31#@Author:cxa#@File:toml_demo.py#@Software:PyCharmimporttomlimportosBASE_DIR=os.path.dirname(os.path.abspath(__file__))classFileOperation:def__init__(self):self.dic=dict()self.toml_file_path=os.path.join(BASE_DIR,"config.toml")def__add__(self,other):self.dic.update(self.other)returnself.dicdefwrite(self):...
继续阅读 >