In the second case in this example, we've extracted the values inside the tuple to scoped variables, then reused these variables in the resulting expression.
例子里的第二个case,我们已经解出了元组里的值并且附给了局部变量,然后在结果表达式中使用了这些变量。
You also can create a tuple from a set of existing variables in a process called packing.
您还可以从称为打包的过程的一组现有变量中创建一个tuple。
An assignment with a sequence on the right side and a tuple of variables on the left.
元组赋值:一种赋值语句,等号右侧用一个序列,左侧为一个变量构成的元组。
An assignment with a sequence on the right side and a tuple of variables on the left.
元组赋值:一种赋值语句,等号右侧用一个序列,左侧为一个变量构成的元组。
应用推荐