摘要:
现在有这么一个需求,要判断iptables是否开启。咋看比较难以入手,那么可以想,怎么启动iptables,redhat下很容易联想到/etc/init.d/iptabes start 。 我们可以来看一下启动脚本: start() { # Do not start if there is no config file. [ ! -f "$IPTAB... 阅读全文
摘要:
1. lambdaThe lambda operator or lambda function is a way to create small anonymous functions ,i.e. functions without a name. 可以方便的创造一个函数。比如 def add(... 阅读全文