run.py 文件源码

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

项目:twitter_mongodb_helper 作者: IDEA-NTHU-Taiwan 项目源码 文件源码
def write_json_file(filename, path, result):
    """Writes the result to json with the given filename.

    Args:
        filename   (str): Filename to write to.
        path       (str): Directory path to use.
    """
    with open(path + filename + ".json", "w+") as json_file:
        ujson.dump(result, json_file)
    json_file.close()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号