- 博客(7)
- 收藏
- 关注
原创 explanition of “margin is insufficient“
【代码】explanition of “margin is insufficient“
2023-08-12 18:35:30 166 1
原创 量化准备工作
tmux rename-session -t 重命名session。tmux kill-session -t 关闭session。tmux attach -t 进入session。tmux switch -t 切换session。按下Ctrl+d或者显式输入exit命令,就可以退出 Tmux 窗口。
2023-07-15 21:34:14 71 1
原创 杀线程代码
import threadingimport inspectimport ctypesthread = {'id':0,'kill':0}def stop(tid): tid = ctypes.c_long(tid) if not inspect.isclass(SystemExit): exctype = type(SystemExit) res = ctypes.pythonapi.PyThreadState_SetAsyncExc(tid, ct.
2021-10-03 22:29:30 982
原创 linux 下安装使用tmux
安装 ncurses-develyum -y install ncurses-devel安装 libevent-devyum -y install libevent-devel安装 git yum install git获取tmux 的源码 git clone https://github.com/tmux/tmux.git进入目录cd tmux安装yum installautomake执行sh autogen.sh编译并安装tmux./configur...
2021-09-25 23:17:58 198
转载 Linux 升级 Python 至 3.x
简述CentOS 7 中默认安装了 Python,版本比较低(2.7.5),为了使用新版 3.x,需要对旧版本进行升级。由于很多基本的命令、软件包都依赖旧版本,比如:yum。所以,在更新 Python 时,建议不要删除旧版本(新旧版本可以共存)。简述 查看 Python 版本号 下载新版本 解压缩 安装配置 编译 安装 验证 设置 3x 为默认版本 配置 yum查看 Python 版本号当 Linux 上安装 Python 后(默认安装),只需要输入简单的命令,
2021-09-03 16:42:02 265
原创 python生成13位或16位时间戳以及反向解析时间戳的实例
直接上代码 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
2021-08-20 16:32:37 1183
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人