|
|
1
2
参见示例,
如。
非常有用的资源Difference between function with parentheses and without [duplicate] Why does Scala need parameterless in addition to zero-parameter methods? |
|
2
1
将括号添加到
…和
然后它将按需要工作。
|