自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 rdkit计算

import osimport rdkitimport pandas as pdfrom rdkit import Chemfrom rdkit.Chem import Descriptorsfrom rdkit.ML.Descriptors import MoleculeDescriptorspath=‘POSCAR-2’mols=[]files= os.listdir(path)for file in files:mol = Chem.MolFromMolFile(path+’/’+

2021-03-02 15:51:28 327

原创 python实现搜索文件名称,然后复制文件的简洁版本

impor shutilfor dirpath, dirnames, filenames in os.walk(source_dir): #历遍文件夹 if file in filenames: source_path = str(dirpath) + r'/' + str(file) shutil.

2021-01-27 14:32:44 168

原创 把多个列表的数据输出到CSV表格

name=[]DATA1= []head= ['name', 'DATA1']list = [name,DATA1]list_change = numpy.transpose(list) test = pd.DataFrame(columns=head, data=list_change)test.to_csv('name.csv')

2020-11-26 12:44:02 1417

原创 python 第三方库安装调用镜像

第一条:anaconda 安装第三方库问题:1.建议使用anaconda下自带的功能2.安装缓慢时使用镜像conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/conda config --set show_chan

2020-11-21 11:10:25 380

原创 实用的python脚本汇总

脚本1批量在文件的第一行替换为文件名import ospath='POSCAR'files= os.listdir(dir)for file in files: path_mol=path+'/'+file path_mol2=path+'-2'+'/'+file content = open(path_mol, 'r') contnt_replace = open(path_mol2, 'w') line = content.readlines()

2020-10-21 12:55:37 176

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除