zjm*_*126 1 linux bash shell ubuntu
这是我的代码:
num=2
echo "this is the $numnd"
Run Code Online (Sandbox Code Playgroud)
它显示:
this is the
Run Code Online (Sandbox Code Playgroud)
我能做什么 ,
谢谢
使用大括号,如下所示:
num=2
echo "this is the ${num}nd"
Run Code Online (Sandbox Code Playgroud)
输出:
this is the 2nd
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
92 次 |
最近记录: |