摘要:
一、运算符 % 取模,返回商的余数 10/3 3.33333333335 10//3 3 地板除,取整数,不是四舍五入 a = 3 b = 5 > a<b and a==4 or b<10 and a>1 or前面的条件成立,则不走or后面的式子;or前面的条件不成立,则不考虑前面的式子,直接运算后 阅读全文
摘要:
1.编写脚本自动部署反向代理、web、nfs; #!/bin/bash #检测安装nginx function detection_nginx(){ if [ -f /etc/nginx/nginx.conf ] then echo 'nginx has been installed' exit e 阅读全文