Linux patch命令 Linux patch命令用于修补文件。 patch指令让用户利用设置修补文件的方式,修改,更新原始文件。倘若一次仅修改一个文件,可直接在指令列中下达指令依序执行。如果配合修补文件的方式则能一次修补大批文件,这也是Linux系统核心的升级方法之一。 用法: 参数: 实例: ...
分类:
系统相关 时间:
2019-01-16 11:58:34
阅读次数:
176
Q: Where is slurm.conf? A: in /etc/slurm-llnl/slurm.conf Q: Why can't I run 2 "srun" on the same node at the same time? A: We should use "--mem-per-cu ...
分类:
其他好文 时间:
2019-01-16 00:22:17
阅读次数:
170
import gevent #第一次使用需要cmd窗口敲入 pip install Gevent from gevent import monkey:monkey.patch_all import time def f1(): print('第一次f1') time.sleep(2) print(' ...
分类:
其他好文 时间:
2019-01-14 21:34:16
阅读次数:
194
楼主今天第一次用python基于greenlet实现的第三方协程库gevent,由于gevent在切换IO操作(文件IO、网络IO)时是自动完成的,所以gevent需要通过修改Python自带的一些阻塞式系统调用的标准库,包括socket、ssl、threading和 select等模块,而变为协程 ...
分类:
编程语言 时间:
2019-01-14 18:58:39
阅读次数:
397
VScode 好用插件集合(一) 什么是VScode Visual Studio Code (简称 VS Code / VSC) 是一款免费开源的现代化轻量级代码编辑器,支持几乎所有主流的开发语言的语法高亮、智能代码补全、自定义快捷键、括号匹配和颜色区分、代码片段、代码对比 Diff、GIT命令 等 ...
分类:
其他好文 时间:
2019-01-14 14:43:22
阅读次数:
200
We have jobs: difficulty[i] is the difficulty of the ith job, and profit[i] is the profit of the ith job. Now we have some workers. worker[i] is the a ...
分类:
其他好文 时间:
2019-01-14 01:04:30
阅读次数:
261
https://leetcode.com/tag/two-pointers/ ...
分类:
其他好文 时间:
2019-01-13 19:39:34
阅读次数:
214
select * from table where id in (select min(id) from table where 1 = 1 and isused=0 and datediff(hh,addtime,'"&now()&"')<168 group by openid) 解释:从数据表t ...
分类:
其他好文 时间:
2019-01-13 13:40:12
阅读次数:
150