您可以通过定义一个变量名来扩展它。
在这里定义一个变量会使切换到另一数据源变得容易一些。
Defining a variable here makes it easy to switch to another data source.
定义一个变量,指向包含布局信息的JSON文件,如下所示。
Define a variable pointing to the JSON file that contains the layout information as shown here.
And that's fine, because inside of curly braces can you redeclare variables with the same name if you intend to quote unquote shadow the previous variable.
那是可以的,因为,在花括号里面,你可以重新定义一个,相同名字的变量,如果你想引用之前的变量。
in this global environment.
这里定义了一个全局变量。
For example, the experiment could be tossing a coin, I will call the outcome heads the number one, and I'll call the outcome tails the number zero, so I've just defined a random variable.
比方说,抛硬币的试验,我将正面向上的结果对应数字1,反面向上的结果对应数字0,这样我就定义了一个随机变量
应用推荐