摘要: linux shell 可以用户定义函数,然后在 shell 脚本中可以随便调用。 以一个计算两数之和的函数为例: ~~~~ ! /bin/bash 函数定义 sum(){ return $(($1+$2)) } echo now please input a num: read num echo 阅读全文
posted @ 2018-02-20 21:40 Zackary丶Liu 阅读(468) 评论(0) 推荐(0)