数组 数组是值类型,因此改变副本的值,不会影响到本身 数组的定义:var 变量名 [元素数量] T 变量名(符合标识符要求即可) 元素数量(整型,可以是const中的值) T(可以是任意基本类型,包括数组本身,当类型为数组时,可以实现多维数组) var a [5]int 和 var a [10]int 是不同的类型 定义一个字符串数组,然后赋值: var team [3]string team[0] = "hammer" team[1] = "soldier" te
题目如下: One way that the police finds the head of a gang is to check people's phone calls. If there is a phone call between A and B, we say that A and B is related. The weight of a relation is defined to be the total time length of all the phone calls