config.py 文件源码

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

项目:katana-controller 作者: Conr86 项目源码 文件源码
def __init__(self, file):
        with open(file) as conffile:
            config = toml.loads(conffile.read())
        # Sections of the config file
        self.general = config['general']
        self.katana = config['katana']
        self.files = config['files']
        self.lcd = config['lcd']
        self.leds = config['leds']
        self.buttons = config['buttons']
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号