摘要: __new__ 方法负责创建一个实例对象,__init__ 方法负责将该实例对象进行初始化class Myclass(object): def __init__(self, x): self.... 阅读全文
posted @ 2017-08-10 23:19 cn_wk 阅读(60) 评论(0) 推荐(0)
摘要: 问题描述Linux服务器内存使用量超过阈值,触发报警。问题排查首先,通过free命令观察系统的内存使用情况,显示如下: total used free sh... 阅读全文
posted @ 2017-08-10 21:12 cn_wk 阅读(326) 评论(0) 推荐(0)
摘要: 这个可以man一下,Context Line Control -A NUM, --after-context=NUM Print NUM lines of trail... 阅读全文
posted @ 2017-08-10 19:14 cn_wk 阅读(492) 评论(0) 推荐(0)
摘要: #在Python中调用外部命令原问题地址:http://stackoverflow.com/questions/89228/calling-an-external-command-in-python##问题:我如... 阅读全文
posted @ 2017-08-10 18:59 cn_wk 阅读(88) 评论(0) 推荐(0)