config.py 文件源码

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

项目:rqalpha 作者: ricequant 项目源码 文件源码
def dump_config(config_path, config, dumper=yaml.Dumper):
    dirname = os.path.dirname(config_path)
    if not os.path.exists(dirname):
        os.makedirs(dirname)
    with codecs.open(config_path, mode='w', encoding='utf-8') as stream:
        stream.write(to_utf8(yaml.dump(config, Dumper=dumper)))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号