几个cvebase_ifo基础信息融合在一起
原创
©著作权归作者所有:来自51CTO博客作者dream666uping的原创作品,请联系作者获取转载授权,否则将追究法律责任
代码:
# encoding=utf-8
'''
几个基础信息融合在一起
'''
import json
if __name__ == '__main__':
cve_inf1_file = open('C:/0cve\cve\中1000-1500页\cvebase_ifo.json', "r")
cve_inf1_context = json.load(cve_inf1_file)
cve_inf2_file = open('C:/0cve\cve/1500-2000\cvebase_ifo.json', "r")
cve_inf2_context = json.load(cve_inf2_file)
cve_inf3_file = open('C:/0cve\cve\尾部2000-2470\cvebase_ifo.json', "r")
cve_inf3_context = json.load(cve_inf3_file)
cve_inf_context = cve_inf1_context+cve_inf2_context+cve_inf3_context
print(cve_inf_context)
with open('C:/0cve\cvebase_ifo.json', "w+") as json_file:
json_str = json.dumps(cve_inf_context, indent=4)
json_file.write(json_str)
json_file.close()
print('\n************已经成功内容************\n')