从 Go 语言规范:元组赋值将多值操作的各个元素分配给变量列表。有两种形式。在第一种情况下,右侧操作数是单个多值表达式,例如函数调用、通道或映射操作或类型断言。左侧操作数的数量必须与值的数量相匹配。For instance, if f is a function returning two values, x, y = f() assigns the first value to x and the second to y.空白标识符提供了一种忽略赋值中右侧值的方法:_ = x // evaluate x but ignore itx, _ = f() // evaluate f() but ignore second result value