![]() |
1
10
你可以阅读 here in official documentation 关于大括号:
|
![]() |
2
6
编辑 您可能会感兴趣: "dropping curly braces" 这只是另一种语法;这两种形式编译成完全相同的字节码:
number of ops: 9 compiled vars: !0 = $str line # * op fetch ext return operands --------------------------------------------------------------------------------- 2 0 > EXT_STMT 1 ASSIGN !0, 'aaab' 3 2 EXT_STMT 3 FETCH_DIM_R $1 !0, 3 4 ECHO $1 4 5 EXT_STMT 6 FETCH_DIM_R $2 !0, 3 7 ECHO $2 8 > RETURN 1 |
![]() |
3
5
这是一样的,但是
|
![]() |
4
0
{}和[]是相同的。使用什么是你的选择。[]更常见。 |