config.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:petal 作者: hdmifish 项目源码 文件源码
def load(self, vb=False):
        try:
            with open('config.yaml', 'r') as fp:
                self.doc = yaml.load(fp, Loader=yaml.RoundTripLoader)
        except IOError as e:
            log.err("Could not open config.yaml: " + str(e))
        except Exception as e:
            log.err("An unexcpected exception of type: "
                    + type(e).__name__
                    + "has occurred: " + str(e))
        else:
            return self
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号