科学网

 找回密码
  注册
Win10桌面图标显示不正常变成了白色如何解决
赵志强 2020-3-25 15:15
转自知乎: https://zhuanlan.zhihu.com/p/92228968 1、在桌面右键新建 “文本文档” ,将 .txt 修改为 .bat 格式。 2、将以下代码添加进刚才修改的文件中。 @echo off taskkill /f /im explorer.exe CD /d %userprofile%\AppData\Local DEL IconCache.db /a start explorer.exe cho ...
个人分类: 电脑技术|4851 次阅读|没有评论
[转载]Python3中if __name__ == \'__main__\':的作用
赵志强 2019-11-18 21:40
参考: https://blog.csdn.net/Q2605894893/article/details/82345814 https://blog.csdn.net/jianguozhao/article/details/87983986 python代码通常有两种使用方法: 第一是作为脚本直接执行。 第二是 import 到其他的 python 脚本中被调用(模块重用)执行 。 因 ...
个人分类: Python|1837 次阅读|没有评论
PYTHON CODE FOR LAMMPS:建立单层或者多层石墨烯(氮化硼)
赵志强 2019-10-24 22:11
分享最近刚写的生成单层或者多层石墨烯(氮化硼)的python脚本,生成格式为LAMMPS data 格式 用法:在input.py里面输入参数,然后运行Built.py input.py Built.py #!/usr/bin/python # -*- coding: UTF-8 -*- # by ZhiQiang Zhao # Email:zhiqiangzhao@nuaa.edu.cn print('''A CODE ...
个人分类: Python|5055 次阅读|没有评论
python小code: 对能量跟温度进行平均处理
赵志强 2019-10-21 21:12
average.py
个人分类: Python|1877 次阅读|没有评论
python小脚本对原文件进行直接修改:删除、替换
赵志强 2019-10-15 16:16
replace.py
个人分类: Python|1906 次阅读|没有评论
python小脚本加应变
赵志强 2019-10-10 21:23
#!/usr/bin/python # -*- coding: UTF-8 -*- #by Zhiqiang-Zhao #import module ! import os import fileinput as fi import numpy as np import math #specify input and outputfile ! in_file= 'CONTCAR' out1_file='strain.vasp' for i in range ...
个人分类: Python|1847 次阅读|没有评论
[转载]Numpy高维数组的理解
赵志强 2019-9-24 10:01
转载: https://blog.csdn.net/nianzu_ethan_zheng/article/details/79038212 Reference: From Python Nested Lists to Multidimensional numpy Arrays Numpy高维数据的理解 当实际处理多维变量时,尤其需要使用到Tensorflow这样深度学习库,比如,图片数据批次其形状为: N×H×W×C , 高维序列格式存在难 ...
个人分类: Python|1806 次阅读|没有评论
[转载]LAMMPS-用fix nve一定表示NVE系综的模拟么
赵志强 2019-6-26 08:59
首先要声明的是,或者要强调的是:命令和系综没有直接联系,除非你的in文件里只有一个和系综相关的fix. 我们知道,按统计物理的概念来讲,我们常用的模拟系综分NVE(表示系统粒子数、体积、总能量保持不变,是为微正则系综),NVT(表示,粒子数、体积、温度保持不变,是正则系综,大多数体系都会用此系综进行抽样),NPT ...
个人分类: MD|5906 次阅读|没有评论
python code LAMMPS轨迹文件格式转化
赵志强 2019-6-24 18:59
代码的目的是为了把xxx.lammps文件中的速度进行变换 提高:使用列表中元素的数目来对特征行进行匹配 #!/usr/bin/python #-*-coding:UTF-8-*- #byZhiqiang-ZhaoinNUAA #Email:ZhiqiangZhao@nuaa.edu.cn #importmodule! importos import&n ...
个人分类: Python|4092 次阅读|没有评论
Python selenium自动登录网站
赵志强 2019-6-19 19:37
首次尝试python爬虫,感觉不错: #!/usr/bin/python #-*-coding:UTF-8-*- #byZhiqiang-Zhao #email:zhiqiangzhao@nuaa.edu.cn #specifymodule! fromseleniumimportwebdriver fromselenium.common.exceptionsimportT ...
个人分类: Python|1970 次阅读|没有评论

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-16 15:12

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部