$ num=`expr 1 + 1` 1.加减乘除、取余。 2.expr的每个参数间都有空格。 3.乘法要用反斜杠转义。 expr 2 \* 3 转载于:https://www.cnblogs.com/helloweworld/p/3403880.html