做cpa没有网站怎么办,网站使用的数据库主要有哪些,全国企业信息查询网,中国核工业集团有限公司pymatgen读/写各种文件pymatgen是材料大数据计算的必备程序包了#xff0c;其也作为API与materials project对接#xff0c;可以批量下载自己想要的材料结构、性质#xff0c;它也提供了大量VASP计算后的数据处理、计算#xff0c;堪称材料基因组学的神器#xff01;pymat…pymatgen读/写各种文件pymatgen是材料大数据计算的必备程序包了其也作为API与materials project对接可以批量下载自己想要的材料结构、性质它也提供了大量VASP计算后的数据处理、计算堪称材料基因组学的神器pymatgen提供了读取CIF、json、POSCAR、CONTCAR等文件的程序可以批量读取、转化、另存。不过作为初学者里面很多功能是很难理解的特别是对python语言不熟的同学。1. pymatgen读取json文件转化为Structure对象并保存为CIF文件from pymatgen import Structure, Lattice, MPRester, Moleculeimport jsonfrom pymatgen.io.cif import CifWriter# 如果只有一个结构#data_file open(../db-1.json, r)#all_structures data_file.readlines()#structure json.loads(all_structure)[structure]structure Structure.from_dict(structure)c CifWriter(structure)c.write_file(1.cif)# 如果是一个结构数据库读取后保存为cif文件data_file open(db.json, r)all_structures data_file.readlines()i 0for structure in all_structures:structure json.loads(structure)[structure]structure Structure.from_dict(structure)i i 1c CifWriter(structure)c.