if [ $# == 0 ];then echo "没有带参数"; else echo "带了$#个参数" fi
if [ "$1" ];then echo "带参数"; else echo "没有带参数 " fi
if [ -z "$1" ];then echo "没有带参数"; else echo "带参数" fi