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
相關文章
相關標籤/搜索