将前500页,和中间500页的CVE编号放在一起

代码:

'''
将前500页,和中间500页的CVE编号放在一起
'''
import json
cve_num1_file = open('D:/00000000\前1-500页/cve_num0.json', "r")
cve_num1_context = json.load(cve_num1_file)

cve_num2_file = open('D:/00000000\中500-1000/cve_num0.json', "r")
cve_num2_context = json.load(cve_num2_file)

ll_sum = cve_num1_context+cve_num2_context

#写入
with open('D:/00000000/cve_num0.json', "w") as json_file:
    json_str = json.dumps(ll_sum, indent=4)
    json_file.write(json_str)
    json_file.close()
    print("cve前1000页数据生成成功!")

结果:

发布了624 篇原创文章 · 获赞 1694 · 访问量 121万+

猜你喜欢

转载自blog.csdn.net/weixin_42859280/article/details/105485830