${variable:-10}` 和 `${variable: -10}` 有什么区别? admin • 2023年11月30日 am4:41 • 运维 • 阅读 84 ${variable:-10}` - 如果之前没有给 variable 赋值则输出 10;如果有赋值则输出该变量 ${variable: -10} - 输出 variable 的最后 10 个字符 发布者:admin,如若转载,请注明出处:https://ai1024.vip/41172.html