db.py 文件源码

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

项目:bigfootbot 作者: bigfoot547 项目源码 文件源码
def get(self, section, name, value):
        # Where are we going to store the database file.
        path_obj = path.path()
        path_obj.fromstr(self.database_dir)
        path_obj.add(section)
        path_obj.add(name)
        # The database file itself.
        entry = path.path()
        entry.fromstr(path_obj.tostr())
        entry.add("data")

        # Return the data.
        with open(entry.tostr(), 'r') as file:
            return file.read()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号