来自go中的字符串的int

Osc*_*Ryz 5 atoi go parseint

从string创建int值的功能是什么?

i := ???.????( "10" )
Run Code Online (Sandbox Code Playgroud)

Kyl*_*ndo 7

导入strconv包(src/pkg/strconv),然后使用strconv.Atoi("10")