golang string 和 int 的互相转换

string 转 int 要 import strconv import ( "fmt" "strconv" ) func test(x int, y string) string { var res string //strconv.Itoa 就是将 int 类型 转成 stirng res = strconv.Itoa(x) + y return res } i
相关文章
相关标签/搜索