Use e Square 使用方形
Instead of parentheses (), you use square brackets, as shown in Listing 10.
列表使用方括号,而不是圆括号(),如清单10所示。
The squiggly-brackets, , represent an empty dictionary. To add items to the dictionary, you can use square brackets.
大括号,也叫花括号,就是,代表了一个空字典。要在字典里面加项,可以使用方括号。
You can easily visualize the data structure by imagining a grid of square or hexagonal cells. (in practice, applications use square cells most of the time.)
通过想像正方形网格或六边形单元,可以方便地可视化数据结构(实践中,应用程序在多数情况下采用正方形网格)。
It turns out you can list one, give it a name, and if you use square brackets, that tells the compiler I actually want to put multiple values inside of this -- inside of this variable and how do we do that?
结果是你可以列举一个,给它取个名字,如果你使用方括号,那是告诉编译器,在里面我需要许多的值--在这些变量里,我怎么做到的?
Well, turns out that with arrays, not to make this too trippy too soon, but Arg V bracket something is a string, you can also use square bracket notation to go to a specific letter in a string, because little teaser a string is just an array.
好的,结果用那个数组,不要使这个很快引起幻觉,但是Argv什么的,是一个字符串,你也可以用方括号定位到,字符串中的一个特定的字母,因为一个字符串只是一个数组。
In a high-level language, square root might simply be a primitive that you can use rather than you having to go over and code it.
一个高级的语言,平方根可能仅仅,只是你能使用的一个基本要素,而不是你需要去编译它。
应用推荐