# coding=utf-8import math# 把函数作为参数def add(x, y, f): return f(x) + f(y)# list 遍历执行函数def format_name(s): return s[0].upper() + s[1:].lower()# list求积def prod(x, y):
__author__ = math (xyf): f(x) + f(y) (s): s[].upper() + s[:].lower() (xy): x * y
#!/bin/bash #System Monitoring Script while [ 1 ] do #本机需开启postfix或sendmail服务。 #报警邮件地址设置 MAILFROM=monitor@zhaoyun.com MAILTO=zhaoyun006@163.com #设置脚本运行间隔时间。单位(秒)。 RUNTIME=1 #内存使用率监控设
#!/bin/sh # modprobe ipt_MASQUERADE modprobe ip_conntrack_ftp modprobe ip_nat_ftp iptables -F iptables -t nat -F iptables -X iptables -t nat -X ###########################INPUT键##############
[login] 登录 [logout] 登出 [exit] 登出 [shutdown] 停止系统 [halt] 停止系统 [reboot] 重启动 [poweroff] 切断电源 [sync] 把内存里的内容写入磁盘 [lilo] 安装lilo启动管理程序 [grub] 安装lilo启动管理程序 二. Shell相关命令 [chsh] 切换Shell [hi
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号