Skip to content

第十五章:运算符 ​

  • 基本语法
shell
$((运算式))
或
$[运算式]
或
expr 运算式(不常用,麻烦)
  • 案例实操

    • 计算 (2 + 3)* 4 的值
    shell
    $[(2 + 3) * 4]

    image-20220704203221459

Released under the MIT License.