上一页 1 2 3 4 5 6 ··· 15 下一页

2022年9月11日

python + django 搭建网页(尝试5):用户登录

摘要: 参考来源: [1] https://zhuanlan.zhihu.com/p/425426994 [2] https://zhuanlan.zhihu.com/p/423436751 [3] https://www.runoob.com/django/django-admin-manage-tool 阅读全文

posted @ 2022-09-11 20:27 luyi07 阅读(140) 评论(0) 推荐(0) 编辑

2022年9月7日

安装老版本的 typora (不要钱)

摘要: 动机:新版本的 typora 开始收费了,如果不交钱,每次打开的时候都会有弹窗找你要钱。 所以干脆安装个老版本的 typora。老版本完全可以满足我的需求。 1. 下载老版本的 typora 我是从太平洋电脑网下载的, https://dl.pconline.com.cn/download/2853 阅读全文

posted @ 2022-09-07 19:34 luyi07 阅读(1036) 评论(0) 推荐(0) 编辑

2022年9月2日

zerotier 组建异地局域网

摘要: 试了试 zerotier 这个工具,用来访问没有公网 ip 的异地服务器。貌似很好用,所以记个笔记,方便以后查阅。 操作比较简单,网上的教程也不少,例如: https://zhuanlan.zhihu.com/p/433880308 https://baijiahao.baidu.com/s?id= 阅读全文

posted @ 2022-09-02 10:52 luyi07 阅读(138) 评论(0) 推荐(0) 编辑

2022年8月31日

安卓手机用 QPython 写 Python:hello world

摘要: 1. 安装 QPython 在应用市场中搜索 QPython,搜到以后进行安装。 我装过了,所以上图显示“打开”,你可能显示“安装”,点击即可。 需要设置存储权限,方便在手机上存代码。 这样就装好了。 2. 使用 QPython 打开QPython以后,是如下界面,点击终端,它会问你用python2 阅读全文

posted @ 2022-08-31 13:17 luyi07 阅读(409) 评论(0) 推荐(0) 编辑

2022年8月14日

python matplotlib 画多图、子图

摘要: 参考来源: [1] https://matplotlib.org/3.5.3/tutorials/intermediate/arranging_axes.html 1. 添加多图方式 似乎一个 axes 就是一个图,所以文档里把这一类方法归为:arranging axes。 1.1 subfigur 阅读全文

posted @ 2022-08-14 15:06 luyi07 阅读(908) 评论(0) 推荐(0) 编辑

2022年8月13日

贝塔衰变 phase-space factor

摘要: All these are probably well known, I just take notes from these references below, and figure out some derivations. References: Christian Illiadis,《Nuc 阅读全文

posted @ 2022-08-13 18:38 luyi07 阅读(122) 评论(0) 推荐(0) 编辑

2022年8月12日

单极对力下 BCS 方程求解

摘要: BCS方程可用于描述单满壳原子核的基态,这个笔记总结BCS方程的构成和特征,并展示BCS方程数值解的算法,讨论算法中的收敛性问题。 最近实验学家测量了${}^{136}\rm Xe$的价质子在不同轨道上的占据数,所以我借此做了实例演示,在唯象的单极对力哈密顿量下解BCS方程,与最新的实验数据相比较。 阅读全文

posted @ 2022-08-12 16:24 luyi07 阅读(116) 评论(0) 推荐(0) 编辑

2022年7月29日

Lanczos sum rule

摘要: 假设跃迁算符是 $\hat{O}$,如果是 E2,$\hat{O}$ 的第三分量可以是 $-2,-1,0,1,2$。 现在对于给定的初态 $|i\rangle$,想要求它的某种 sum rule: $$ I = \int^\infty_0 d \omega S(\omega) g(\omega). 阅读全文

posted @ 2022-07-29 09:33 luyi07 阅读(38) 评论(0) 推荐(0) 编辑

2022年7月27日

ubuntu 自定义命令,在服务器之间传文件

摘要: 1. 搞个腾讯云服务器 伟大的XHJ帮我搞的,一年只要几百块钱,学生号。硬盘容量 60G。 2. ubuntu 下编辑一个自定义命令: tpull 因为是疼讯,所以 t 打头,pull 表示从云端拷贝文件下来。 自定义命令对应的可执行文件内容如下。 #!/bin/bash file=$1 sshpa 阅读全文

posted @ 2022-07-27 11:36 luyi07 阅读(261) 评论(0) 推荐(0) 编辑

2022年7月22日

python 批量做线性拟合

摘要: 1. 知识点 1.1 最小二乘法:scipy.optimize.leastsq 定义好误差函数 residual, 初始点 [1.0, 0.0],然后给参数 np.array(y), np.array(x),调用 leastsq: plsq = leastsq(residual, [1.0 , 0. 阅读全文

posted @ 2022-07-22 20:58 luyi07 阅读(310) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 15 下一页

导航