package main import ( "fmt" "math" "strconv" ) func main(){ a := []int{1,2,3} //b := []int{4,4,4} b := make([]int,3) copy(b,a) test(b) fmt.Println(b) s := "({{[wqeyqebA" for _, value := range s { //println(value) if value == 's' { } //println(string(value)) } c := 'B'-1 e := math.Pow(2,3) //println(string(s[2])) fmt.Println("======",'A','B',c,e) f,err :=strconv.ParseFloat("2d2",64) if err != nil { fmt.Println("--wwdd",err) } fmt.Println("--dd",f) //w :=titleToNumber("ABC") //fmt.Println("================",w) res := []string{"ffffffflowwew","ffffffflsrrww","ffffffflswee"} t :=longestCommonPrefix(res) fmt.Println(t) } func test(a []int){ b := a b[1]= 1 } func titleToNumber(columnTitle string) int { l := len(columnTitle) if l == 0 { return 0 } res := 0 for i:= 0;i