hostloc while [[ ! "${function}" =~ ^([1-9]|1[0-9])$ ]] 这里如何实现1-30输入 while [[! "${function}" =~ ^([1-9]|1[0-9])$ ]…