translation/chinese/06-变量/04-赋值/问题/README.md
opened := true
closed := trueopened = false 正确var x = 2a, b = 3; 5c, d = true, false 正确a, b, c = 5, 3var (
n = 3
m int
)
m = "4"n = 10 正确n = truem = falsevar (
n = 3
m int
f float64
)
// one of the assignments below will be here
fmt.Println(n, m, f)
n, m = 4, fn = falsen, m, f = m + n, n + 5, 0.5 正确n, m = 3.82, "hi"var (
a int
c bool
)
a = _c, _ = _, false_, _ = a, c 正确记住: path.Split 返回两个 string 值
var c, f string
_ = path.Split("assets/profile.png")_, _, c = path.Split("assets/profile.png")f = path.Split("assets/profile.png")_, f = path.Split("assets/profile.png") 正确