Linux
AdvSoul
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
2021-01-07
csr_matrix使用 https://stackoverflow.com/questions/24973762/numpy-where-equivalent-for-csr-matrix-python # To see what ind2 corresponds to in the dense version, convert the array to coo In [53]: Ac=A.tocoo() In [54]: (Ac.row[ind2], Ac.col[ind2]) Out[54]:原创 2021-02-03 15:24:48 · 142 阅读 · 0 评论 -
Linux 命令行批量杀死进程
假设执行程序的命令为: python3 data_process.py 批量杀死命令为:(这是一串命令,不同命令之间使用管道符“|”进行分割,前一个命令输出作为后一个命令输入) ps aux|grep 'python3 data_process.py'| grep -v grep| awk '{print $2}'|xargs kill -9 # 输出相关执行程序的进程信息,执行命令之间要是有空格,需要加引号 ps aux| grep 'python3 data_process.py' .原创 2020-12-10 22:42:43 · 904 阅读 · 1 评论
分享