test_reco.py 文件源码

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

项目:caly-recommend-system 作者: CalyFactory 项目源码 文件源码
def save_all_recommend_item():
    reco = Reco(json_data, show_external_data = False)
    all_list = reco.get_all_list()

    print(
        json.dumps(
            all_list,
            indent = 4,
            sort_keys=True,
            ensure_ascii=False
        )
    )

    with open('testItemData.json', 'w') as outfile:
        json.dump(all_list, outfile, indent = 4)

    with open('testItemDataEncoded.json', 'w') as outfile:
        json.dump(all_list, outfile, indent = 4, ensure_ascii=False)

# ??? ??
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号