```go
package main
import "fmt"
func main() {
//strconv,'1',我知道能转换,但是双引号就不行
a:="1"
b:=int(a)
fmt.Printf("%v\n",b)
}
```
结果是:
```go
# command-line-arguments
.\03.go:8:8: cannot convert a (type string) to type int
Compilation finished with exit code 2
```
更多评论