上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: object_name? | 查看方法描述 %line magics | 行魔术方法 %%Cell magics | 块魔术方法 !shell | 执行系统命令 Functions that work with code: %run, %edit, %save, %macro, %recall, e 阅读全文
posted @ 2020-09-17 18:21 呓语i 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 批量杀死进程 ps -ef | grep handle_clean_call | grep -v grep | awk '{print $2}' | xargs kill -9 查看网卡流量 network.sh #!/bin/bash ethn=$1 while true do RX_pre=$( 阅读全文
posted @ 2020-09-17 18:14 呓语i 阅读(93) 评论(0) 推荐(0) 编辑
摘要: Js获取父级,兄弟,子元素 // 获取子节点 document.getElementById("div").childNodes // 获取子元素 document.getElementById("div").children[0] // 第一个子元素 document.getElementById 阅读全文
posted @ 2020-09-10 18:27 呓语i 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Linux 工具命令 使用curl测试网络通信 #!/bin/bash cnt_pos=1 while true do echo " the $cnt_pos requet " echo "Start time: "`date +"%Y-%m-%d %H:%M:%S"` t0=`date +%s` 阅读全文
posted @ 2020-09-01 18:48 呓语i 阅读(852) 评论(0) 推荐(0) 编辑
摘要: from xml.dom.minidom import Document # 创建Dom doc = Document() # 创建一个根节点 root = doc.createElement("root") doc.appendChild(root) # 给根节点添加属性 root.setAttr 阅读全文
posted @ 2020-09-01 18:23 呓语i 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 安装 Nginx Lua支持 安装系统依赖库 yum install readline-devel pcre-devel openssl-devel gcc 安装LuaJIT $ wget http://luajit.org/download/LuaJIT-2.0.5.tar.gz $ tar zx 阅读全文
posted @ 2020-08-28 00:24 呓语i 阅读(1258) 评论(0) 推荐(0) 编辑
摘要: 下载cjson git clone https://github.com/mpx/lua-cjson cd lua-cjson make 这一步可能会出错, 查找lua.h的位置 sudo find / -name lua.h ⇒ /usr/local/include/luajit-2.0/lua. 阅读全文
posted @ 2020-08-27 22:01 呓语i 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 启动一个进程 from multiprocessing import Process import os def info(title): print(title) print('module name:', __name__) print('parent process:', os.getppid 阅读全文
posted @ 2020-08-25 14:48 呓语i 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 安装工具 yum -y install gcc gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel 编译安装 ./configure --user=ifan --group=ifan --prefix=/home/ifan/so 阅读全文
posted @ 2020-08-24 18:04 呓语i 阅读(131) 评论(0) 推荐(0) 编辑
摘要: pdf import pandas as pd import numpy as np import matplotlib.pyplot as plt # 创建Series s = pd.Series([1, 3, 5, np.nan, 6, 8]) # 创建DataFrame dates = pd. 阅读全文
posted @ 2020-08-24 15:37 呓语i 阅读(105) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页