函數封裝

#!/bin/bash
#函數封裝
#必須先定義再使用

#求2個數的和
sum() {
    num1=10
    num2=20
    echo $(($num1 + $num2))
}

sum
sum
相關文章
相關標籤/搜索