看代码中,$((运算式)),可以用来给变量赋值,例如:total=$(($var1 * $var2)) 不要以为是$()里面加(动作)这类形式 转载于:https://blog.51cto.com/legendland/1951787