This is a creation in Article, where the information may have evolved or changed.
Basic Assignment syntax
variable = expression
var a int;a=1
element in variable = expression
var arr[3] int;arr[0]=1
Declaring variable types to assign values at the same time
var variable type = expression
var arr[3] int =[3]int{1,2,3}
Compound operations
Variable operator = expression
var c int=10;b+=1
The element operator in a variable = an expression
var arr [3] int;arr[1]+=2
Self-increment, decrement, use and numeric type, cannot be placed in an expression
Variable + +, variable--
var i int=99;i++
Tuple assignment
Variable 1, variable 2, variable 3 = expression 1, expression 2, expression 3
var x,y,x int;x,y,z=1,2,3
A short declaration that declares variables to be assigned at the same time, variable types have go self-derivation
Variable: An expression
teacher :="曾远征"