错误原因:这里就是说,分组这一列里面,包含了非字符串的内容,比如数字。因为 .str.contains 的使用就要求这个字段必须是字符串,不能掺杂数字的。 解决方案: # 包含对应关系的所有行 data_ych_pid = self.database[self.database[column_nam ...
分类:
其他好文 时间:
2021-02-24 13:25:38
阅读次数:
0
使用CacheManager 1 Cache 作用 Cache 缓存: 计算机内存中一段数据 作用: 用来减轻DB的访问压力,从而提高系统的查询效率 流程: 2 .使用shiro中默认EhCache实现缓存 (1).引入依赖 <!--引入shiro和ehcache--> <dependency> < ...
分类:
编程语言 时间:
2021-02-23 14:27:13
阅读次数:
0
思路: 1. 查询出端口所在进程的PID 2. 杀死进程(PID) Linux 查询占用的端口(如8080端口) netstate -anp | grep 8080 杀死进程 kill -9 2787 #进程的pid Mac 查询占用的端口(如8080端口) sudo lsof -i tcp:808 ...
分类:
其他好文 时间:
2021-02-20 11:59:43
阅读次数:
0
线上故障主要包括cpu 磁盘 内存 网络等问题 依次排查 1.cpu 1) 先用ps找到进程pid 2) top -H -p pid 找到cpu占用高的线程 3)printf '%x\n' pid 获得16进制的nid 4) jstack pid |grep 'nid' -C5 -color 显示堆 ...
分类:
其他好文 时间:
2021-02-20 11:45:56
阅读次数:
0
1. 执行cmd 2. cmd命令模式下输入netstat -ano,然后找到占用端口的那个进程 如下图.. 3.PID号为1488的进程占用着8080端口,打开任务管理器查看详细信息,查找PID号为1476进程,点击结束任务即可,如下图所示( 也可以直接 使用命令taskkill /pid 984 ...
分类:
编程语言 时间:
2021-02-19 13:47:32
阅读次数:
0
1.fork函数 作用:创建一个子进程 函数原型:pid_t fork(); 返回值: 两个返回值,一个是父进程的返回值,其值为子进程的进程id;一个是子进程的返回值,为0代表创建成功,-1代表创建失败。 循环创建n个进程: 1 #include <stdio.h> 2 #include <unis ...
分类:
系统相关 时间:
2021-02-17 14:48:51
阅读次数:
0
论文标题:ERNIE: Enhanced Representation through Knowledge Integration 作者:Yu Sun 作者单位/个人主页:https://dblp.uni-trier.de/pid/62/3689.html 论文档次: CoRR abs收录 论文引用 ...
分类:
其他好文 时间:
2021-02-10 13:13:28
阅读次数:
0
//销毁僵尸进程2#include <stdio.h>#include <stdlib.h>#include <sys/wait.h> int main(int argc, char *argv[]){ int status; pid_t pid=fork(); if (pid==0) { slee ...
分类:
系统相关 时间:
2021-02-09 12:31:34
阅读次数:
0
//通过fork函数创建进程#include <stdio.h>#include <unistd.h> int gval=10;int main(int argc, char *argv[]){ pid_t pid; int lval=20; gval++,lval+=5; pid=fork(); ...
分类:
系统相关 时间:
2021-02-09 12:27:28
阅读次数:
0
题目描述: http://acm.hdu.edu.cn/showproblem.php?pid=1043 中文大意: 经典八数码问题。 给定初始状态,要求变换到目标状态并输出移动过程。 目标状态固定为:1 2 3 4 5 6 7 8 x 。 思路: 采用逆向 BFS + 康托展开判重 + 打表的方法 ...
分类:
其他好文 时间:
2021-02-08 12:12:13
阅读次数:
0